Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001334/0.001334, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 214.8 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 53.8 kB / 347.2 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.2556, allocations: 49.16 MB / 396.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005222/0.2608, allocations: 4.509 MB / 400.8 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008782/0.2696, allocations: 7.497 MB / 408.3 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006551/0.2703, allocations: 57.25 kB / 408.4 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009426/0.2712, allocations: 351.6 kB / 408.7 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002295/0.2735, allocations: 0.8313 MB / 409.6 MB, free: 24 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001782/0.2753, allocations: 0.5774 MB / 410.2 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002532/0.2778, allocations: 1.656 MB / 411.8 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002243/0.2781, allocations: 98.16 kB / 411.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004327/0.2785, allocations: 298.5 kB / 412.2 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003825/0.2789, allocations: 294.2 kB / 412.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.089e-05/0.2789, allocations: 29.16 kB / 412.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001253/0.2802, allocations: 0.5296 MB / 413 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.97e-05/0.2803, allocations: 103.1 kB / 413.1 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003201/0.2806, allocations: 303.6 kB / 413.4 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001522/0.2821, allocations: 1.22 MB / 414.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2821, allocations: 3.938 kB / 414.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2821, allocations: 4 kB / 414.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.288e-05/0.2821, allocations: 1.781 kB / 414.7 MB, free: 13.56 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.002028/0.2842, allocations: 1.235 MB / 415.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.2842, allocations: 13.3 kB / 415.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.728e-05/0.2843, allocations: 59.61 kB / 416 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000179/0.2845, allocations: 124.1 kB / 416.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001344/0.2858, allocations: 0.7844 MB / 416.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.2858, allocations: 19.5 kB / 416.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.05e-05/0.2859, allocations: 27.72 kB / 416.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000556/0.2864, allocations: 339.2 kB / 417.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.2865, allocations: 0 / 417.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.2865, allocations: 10.28 kB / 417.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.2865, allocations: 6.562 kB / 417.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004214/0.2869, allocations: 231.7 kB / 417.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.2888, allocations: 1.107 MB / 418.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003736/0.2892, allocations: 180.8 kB / 418.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003276/0.2895, allocations: 199.1 kB / 419 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006976/0.2965, allocations: 3.072 MB / 422.1 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.2965, allocations: 36.19 kB / 422.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.215e-06/0.2965, allocations: 1.281 kB / 422.1 MB, free: 8.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001624/0.2982, allocations: 0.5835 MB / 422.7 MB, free: 8.492 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.2982, allocations: 79.89 kB / 422.7 MB, free: 8.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001015/0.2992, allocations: 0.8025 MB / 423.6 MB, free: 7.605 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.2993, allocations: 29.7 kB / 423.6 MB, free: 7.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003998/0.2997, allocations: 445 kB / 424 MB, free: 7.129 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.094e-05/0.2997, allocations: 83.27 kB / 424.1 MB, free: 7.047 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.2998, allocations: 61.89 kB / 424.2 MB, free: 6.98 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.3, allocations: 321.9 kB / 424.5 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.3002, allocations: 68.2 kB / 424.5 MB, free: 6.594 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.3004, allocations: 171.5 kB / 424.7 MB, free: 6.387 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003873/0.3008, allocations: 232.4 kB / 424.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3008, allocations: 0 / 424.9 MB, free: 6.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007013/0.3015, allocations: 402.1 kB / 425.3 MB, free: 5.727 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.3015, allocations: 12.28 kB / 425.3 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-05/0.3015, allocations: 12 kB / 425.3 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003997/0.3019, allocations: 144.6 kB / 425.5 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.3021, allocations: 39.91 kB / 425.5 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007282/0.3028, allocations: 0.7045 MB / 426.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003531/0.3032, allocations: 27.78 kB / 426.3 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.698e-05/0.3032, allocations: 23.92 kB / 426.3 MB, free: 4.738 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002695/0.3035, allocations: 189.8 kB / 426.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001382/0.3036, allocations: 111.3 kB / 426.6 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008429/0.3045, allocations: 407.4 kB / 427 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-06/0.3045, allocations: 0 / 427 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.3045, allocations: 0 / 427 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.3045, allocations: 3.984 kB / 427 MB, free: 4.016 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006658/0.3052, allocations: 470.7 kB / 427.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-05/0.3052, allocations: 11.94 kB / 427.5 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.3053, allocations: 23.97 kB / 427.5 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002947/0.3056, allocations: 132.8 kB / 427.6 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.504e-05/0.3056, allocations: 8 kB / 427.6 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007018/0.3063, allocations: 0.7044 MB / 428.3 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.3064, allocations: 0 / 428.3 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006256/0.307, allocations: 448.3 kB / 428.8 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002563/0.3072, allocations: 99.33 kB / 428.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.827e-05/0.3073, allocations: 12 kB / 428.9 MB, free: 2.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.3075, allocations: 4 kB / 428.9 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.965e-05/0.3076, allocations: 23.91 kB / 428.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-05/0.3076, allocations: 8 kB / 428.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000703/0.3083, allocations: 0.5461 MB / 429.4 MB, free: 1.453 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3083, allocations: 3.938 kB / 429.4 MB, free: 1.449 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000622/0.3089, allocations: 191.7 kB / 429.6 MB, free: 1.262 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001379/0.3103, allocations: 1.181 MB / 430.8 MB, free: 52 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006119/0.3109, allocations: 267.4 kB / 431.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3109, allocations: 0 / 431.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003084/0.3113, allocations: 172.5 kB / 431.2 MB, free: 15.6 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006714/0.3119, allocations: 146.1 kB / 431.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00714/0.3191, allocations: 5.31 MB / 436.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003388/0.3194, allocations: 349.4 kB / 437 MB, free: 9.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003206/0.3197, allocations: 106.7 kB / 437.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003927/0.3201, allocations: 315.3 kB / 437.5 MB, free: 9.172 MB / 350.1 MB Notification: Performance of SimCode: time 8.41e-07/0.3201, allocations: 4 kB / 437.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0556/0.3757, allocations: 18.84 MB / 456.3 MB, free: 6.246 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.92/13.29, allocations: 4.062 kB / 456.3 MB, free: 6.242 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.6630001491867]