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.0008113/0.0008113, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003571/0.003571, allocations: 161.2 kB / 24.69 MB, free: 9.414 MB / 18.57 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 0.8606/0.8606, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 1.874e-06/1.874e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.297e-05/1.484e-05, allocations: 2.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.1255/0.1255, allocations: 4.513 MB / 302.9 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.007043/0.1326, allocations: 7.491 MB / 310.4 MB, free: 8.891 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006936/0.1333, allocations: 61.69 kB / 310.5 MB, free: 8.848 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008781/0.1341, allocations: 352.1 kB / 310.8 MB, free: 8.676 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002265/0.1364, allocations: 0.8501 MB / 311.7 MB, free: 8.145 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001565/0.138, allocations: 0.6008 MB / 312.3 MB, free: 7.832 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001871/0.1398, allocations: 1.699 MB / 314 MB, free: 7.152 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.14, allocations: 106.5 kB / 314.1 MB, free: 7.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004314/0.1405, allocations: 416.4 kB / 314.5 MB, free: 6.973 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.1407, allocations: 224.1 kB / 314.7 MB, free: 6.906 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.685e-05/0.1408, allocations: 30.19 kB / 314.7 MB, free: 6.906 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001081/0.1419, allocations: 0.5225 MB / 315.3 MB, free: 6.805 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.943e-05/0.1419, allocations: 104.7 kB / 315.4 MB, free: 6.73 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001817/0.1421, allocations: 229.7 kB / 315.6 MB, free: 6.656 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001357/0.1435, allocations: 1.242 MB / 316.8 MB, free: 6.168 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.1435, allocations: 4 kB / 316.8 MB, free: 6.164 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.1435, allocations: 1.062 kB / 316.8 MB, free: 6.164 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.293e-05/0.1435, allocations: 0 / 316.8 MB, free: 6.164 MB / 282.7 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.001626/0.1451, allocations: 1.226 MB / 318.1 MB, free: 5.301 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1452, allocations: 13.86 kB / 318.1 MB, free: 5.297 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.143e-05/0.1452, allocations: 61.75 kB / 318.1 MB, free: 5.242 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.1454, allocations: 122.6 kB / 318.3 MB, free: 5.18 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009128/0.1463, allocations: 0.7821 MB / 319 MB, free: 4.66 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.1463, allocations: 19.33 kB / 319.1 MB, free: 4.648 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.92e-05/0.1463, allocations: 24.06 kB / 319.1 MB, free: 4.641 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00039/0.1467, allocations: 333.9 kB / 319.4 MB, free: 4.469 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.1467, allocations: 1.125 kB / 319.4 MB, free: 4.469 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.1468, allocations: 10.16 kB / 319.4 MB, free: 4.461 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1468, allocations: 7.062 kB / 319.4 MB, free: 4.461 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002946/0.1471, allocations: 231.5 kB / 319.7 MB, free: 4.375 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.1482, allocations: 1.1 MB / 320.8 MB, free: 3.684 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002642/0.1485, allocations: 178.8 kB / 320.9 MB, free: 3.598 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001983/0.1487, allocations: 201.8 kB / 321.1 MB, free: 3.508 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003993/0.1527, allocations: 3.071 MB / 324.2 MB, free: 2.16 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.1527, allocations: 37.31 kB / 324.2 MB, free: 2.117 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 1.412e-06/0.1527, allocations: 0 / 324.2 MB, free: 2.117 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009583/0.1536, allocations: 0.5742 MB / 324.8 MB, free: 1.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.1537, allocations: 80.05 kB / 324.9 MB, free: 1.727 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006105/0.1543, allocations: 0.806 MB / 325.7 MB, free: 1.262 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.1543, allocations: 30.58 kB / 325.7 MB, free: 1.227 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/0.1545, allocations: 448 kB / 326.2 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.1545, allocations: 79.95 kB / 326.2 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.289e-05/0.1546, allocations: 54.72 kB / 326.3 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.754e-05/0.1546, allocations: 320.6 kB / 326.6 MB, free: 424 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.059e-05/0.1547, allocations: 76.84 kB / 326.7 MB, free: 384 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.1548, allocations: 168 kB / 326.8 MB, free: 224 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002198/0.1551, allocations: 227.1 kB / 327.1 MB, free: 56 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1551, allocations: 5.078 kB / 327.1 MB, free: 52 kB / 282.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004654/0.1555, allocations: 415.3 kB / 327.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.1555, allocations: 6.156 kB / 327.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/0.1556, allocations: 21.78 kB / 327.5 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002827/0.1559, allocations: 135.7 kB / 327.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.989e-05/0.156, allocations: 37.47 kB / 327.7 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004578/0.1564, allocations: 0.7077 MB / 328.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.1566, allocations: 30.44 kB / 328.4 MB, free: 15.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.131e-05/0.1566, allocations: 21.38 kB / 328.4 MB, free: 15.12 MB / 298.7 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.0001813/0.1568, allocations: 192.5 kB / 328.6 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.492e-05/0.1569, allocations: 109.3 kB / 328.7 MB, free: 14.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004894/0.1574, allocations: 404.5 kB / 329.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1574, allocations: 3.5 kB / 329.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.1574, allocations: 0 / 329.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.1574, allocations: 3.984 kB / 329.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004601/0.1578, allocations: 463.4 kB / 329.6 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.639e-05/0.1579, allocations: 16 kB / 329.6 MB, free: 14.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.385e-05/0.1579, allocations: 15.83 kB / 329.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001939/0.1581, allocations: 141 kB / 329.7 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.1581, allocations: 9.594 kB / 329.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004092/0.1585, allocations: 0.7104 MB / 330.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1585, allocations: 0 / 330.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004181/0.159, allocations: 446.8 kB / 330.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.1591, allocations: 104.1 kB / 331 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.653e-05/0.1591, allocations: 5.375 kB / 331 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001128/0.1592, allocations: 6.75 kB / 331 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.514e-05/0.1593, allocations: 14.84 kB / 331 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.1593, allocations: 8.25 kB / 331 MB, free: 13.25 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004963/0.1598, allocations: 0.5414 MB / 331.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1598, allocations: 0 / 331.6 MB, free: 12.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005764/0.1604, allocations: 196 kB / 331.8 MB, free: 12.84 MB / 298.7 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.001025/0.1614, allocations: 1.207 MB / 333 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003924/0.1618, allocations: 263.2 kB / 333.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1618, allocations: 0 / 333.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.1619, allocations: 171.8 kB / 333.4 MB, free: 11.15 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004409/0.1624, allocations: 140.1 kB / 333.5 MB, free: 11.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005462/0.1678, allocations: 5.319 MB / 338.9 MB, free: 5.504 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004148/0.1683, allocations: 349.4 kB / 339.2 MB, free: 5.137 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002517/0.1685, allocations: 102.7 kB / 339.3 MB, free: 5.031 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002212/0.1687, allocations: 320.4 kB / 339.6 MB, free: 4.719 MB / 298.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1687, allocations: 0 / 339.6 MB, free: 4.719 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0341/0.2028, allocations: 18.95 MB / 358.6 MB, free: 1.715 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.345/8.548, allocations: 12.19 kB / 358.6 MB, free: 1.703 MB / 314.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins/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: 10.12512721028179]