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.001617/0.001617, allocations: 108.8 kB / 19.16 MB, free: 3.871 MB / 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.001715/0.001715, allocations: 202.3 kB / 22.12 MB, free: 0.9297 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.429/1.429, allocations: 207.6 MB / 232.5 MB, free: 3.938 MB / 174.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="cs",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.001806/0.001806, allocations: 51.92 kB / 343 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09699/0.0988, allocations: 49.12 MB / 392.1 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006692/0.1055, allocations: 5.183 MB / 397.3 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01093/0.1164, allocations: 8.696 MB / 406 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007804/0.1172, allocations: 59.31 kB / 406 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001009/0.1182, allocations: 381.5 kB / 406.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002458/0.1207, allocations: 0.8224 MB / 407.2 MB, free: 9.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001673/0.1223, allocations: 0.5869 MB / 407.8 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00267/0.125, allocations: 1.654 MB / 409.5 MB, free: 7.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002484/0.1253, allocations: 111 kB / 409.6 MB, free: 7.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003894/0.1257, allocations: 298.6 kB / 409.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003965/0.1261, allocations: 318 kB / 410.2 MB, free: 6.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.333e-05/0.1261, allocations: 28 kB / 410.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001365/0.1275, allocations: 0.5582 MB / 410.8 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001013/0.1276, allocations: 99.33 kB / 410.9 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004139/0.128, allocations: 409.5 kB / 411.3 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001694/0.1297, allocations: 1.206 MB / 412.5 MB, free: 4.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.1297, allocations: 4 kB / 412.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1297, allocations: 0 / 412.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.247e-05/0.1297, allocations: 0 / 412.5 MB, free: 4.238 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.002164/0.1319, allocations: 1.313 MB / 413.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.1319, allocations: 8.031 kB / 413.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.535e-05/0.1319, allocations: 8.75 kB / 413.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.15e-05/0.132, allocations: 62.72 kB / 413.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00017/0.1322, allocations: 120.2 kB / 414 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001277/0.1335, allocations: 0.8677 MB / 414.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.567e-05/0.1335, allocations: 16.56 kB / 414.9 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.435e-05/0.1335, allocations: 24 kB / 414.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005792/0.1341, allocations: 315.6 kB / 415.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.1341, allocations: 0 / 415.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.021e-05/0.1342, allocations: 8 kB / 415.2 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.1342, allocations: 11.98 kB / 415.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004602/0.1346, allocations: 230.1 kB / 415.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.1365, allocations: 1.191 MB / 416.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000389/0.1369, allocations: 182.5 kB / 416.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000323/0.1373, allocations: 190.2 kB / 417 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009557/0.1468, allocations: 8.565 MB / 425.6 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.1468, allocations: 34.56 kB / 425.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.294e-06/0.1468, allocations: 0 / 425.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001696/0.1485, allocations: 0.6509 MB / 426.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.581e-05/0.1486, allocations: 81.05 kB / 426.3 MB, free: 4.723 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009768/0.1496, allocations: 0.8064 MB / 427.1 MB, free: 3.898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.1496, allocations: 33.7 kB / 427.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000382/0.15, allocations: 449 kB / 427.6 MB, free: 3.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.326e-05/0.1501, allocations: 87.2 kB / 427.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.1502, allocations: 57.94 kB / 427.8 MB, free: 3.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1503, allocations: 314 kB / 428.1 MB, free: 2.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.1505, allocations: 64.2 kB / 428.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002119/0.1507, allocations: 153.8 kB / 428.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.151, allocations: 224.5 kB / 428.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.151, allocations: 0 / 428.5 MB, free: 2.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000654/0.1517, allocations: 410 kB / 428.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.1517, allocations: 8 kB / 428.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.1517, allocations: 12 kB / 428.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003794/0.1521, allocations: 152.9 kB / 429.1 MB, free: 1.879 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.1523, allocations: 35.97 kB / 429.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007032/0.153, allocations: 0.7123 MB / 429.8 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002325/0.1532, allocations: 23.84 kB / 429.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.921e-05/0.1532, allocations: 19.98 kB / 429.9 MB, free: 1.062 MB / 350.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.0002568/0.1535, allocations: 201.8 kB / 430.1 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.1536, allocations: 111.3 kB / 430.2 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007891/0.1544, allocations: 387.4 kB / 430.5 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.1544, allocations: 8 kB / 430.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1544, allocations: 0 / 430.5 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.1544, allocations: 3.984 kB / 430.5 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006623/0.1551, allocations: 0.5073 MB / 431.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.47e-05/0.1551, allocations: 16 kB / 431.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.1553, allocations: 23.91 kB / 431.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002836/0.1555, allocations: 132.8 kB / 431.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.1556, allocations: 4 kB / 431.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006652/0.1562, allocations: 0.7089 MB / 431.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1562, allocations: 0 / 431.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006211/0.1569, allocations: 464.2 kB / 432.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000191/0.157, allocations: 172.4 kB / 432.6 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.456e-05/0.1571, allocations: 8 kB / 432.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.1573, allocations: 7.984 kB / 432.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.464e-05/0.1574, allocations: 15.92 kB / 432.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.458e-05/0.1574, allocations: 12 kB / 432.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006605/0.1581, allocations: 0.5383 MB / 433.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1581, allocations: 4 kB / 433.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005903/0.1587, allocations: 199.6 kB / 433.3 MB, free: 13.43 MB / 366.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.001393/0.1601, allocations: 1.181 MB / 434.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006062/0.1607, allocations: 275.7 kB / 434.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1607, allocations: 0 / 434.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003081/0.161, allocations: 167.3 kB / 435 MB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005909/0.1616, allocations: 136.8 kB / 435.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00722/0.1688, allocations: 5.324 MB / 440.4 MB, free: 6.109 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006386/0.1694, allocations: 0.9413 MB / 441.4 MB, free: 5.141 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002995/0.1697, allocations: 102.7 kB / 441.5 MB, free: 5.035 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/0.1701, allocations: 311.3 kB / 441.8 MB, free: 4.73 MB / 366.1 MB Notification: Performance of SimCode: time 8.81e-07/0.1701, allocations: 0 / 441.8 MB, free: 4.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04679/0.2169, allocations: 18.44 MB / 460.2 MB, free: 2.211 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/13.9, allocations: 8.062 kB / 460.2 MB, free: 2.203 MB / 382.1 MB " [Timeout remaining time 646] (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: 16.585293733980507]