Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001405/0.001405, allocations: 91.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001495/0.001495, allocations: 156.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9968/0.9968, allocations: 177 MB / 204.8 MB, free: 5.25 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 272.9 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.344e-05/2.487e-05, allocations: 2.312 kB / 272.9 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004454/0.004479, allocations: 5.141 MB / 278 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007884/0.01236, allocations: 8.676 MB / 286.7 MB, free: 3.434 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006137/0.01298, allocations: 59.38 kB / 286.8 MB, free: 3.375 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007935/0.01377, allocations: 373.4 kB / 287.1 MB, free: 3.008 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002124/0.01589, allocations: 0.8726 MB / 288 MB, free: 2.129 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.01724, allocations: 0.614 MB / 288.6 MB, free: 1.512 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1161/0.1333, allocations: 1.799 MB / 290.4 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003078/0.1336, allocations: 95.5 kB / 290.5 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007615/0.1344, allocations: 457.2 kB / 291 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004326/0.1348, allocations: 231.2 kB / 291.2 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.156e-05/0.1349, allocations: 30.53 kB / 291.2 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001416/0.1363, allocations: 0.5817 MB / 291.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.91e-05/0.1364, allocations: 104.4 kB / 291.9 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002973/0.1367, allocations: 228 kB / 292.1 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001536/0.1382, allocations: 0.9597 MB / 293.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.1382, allocations: 1.375 kB / 293.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1382, allocations: 0.625 kB / 293.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.669e-05/0.1383, allocations: 0 / 293.1 MB, free: 15.44 MB / 266.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.001877/0.1402, allocations: 1.355 MB / 294.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.1402, allocations: 12.67 kB / 294.5 MB, free: 14.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000337/0.1405, allocations: 147.6 kB / 294.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.1419, allocations: 0.8898 MB / 295.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.952e-05/0.1419, allocations: 18.05 kB / 295.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.96e-05/0.1419, allocations: 28.53 kB / 295.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000385/0.1423, allocations: 278.8 kB / 295.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.1423, allocations: 0 / 295.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/0.1424, allocations: 14.11 kB / 295.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.635e-05/0.1424, allocations: 11.58 kB / 295.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002472/0.1426, allocations: 135.9 kB / 296 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001409/0.144, allocations: 1.097 MB / 297.1 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002753/0.1443, allocations: 139.1 kB / 297.2 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002104/0.1445, allocations: 163.1 kB / 297.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004786/0.1493, allocations: 3.366 MB / 300.7 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.1493, allocations: 38.81 kB / 300.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.433e-06/0.1493, allocations: 0 / 300.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.00105/0.1504, allocations: 0.5178 MB / 301.3 MB, free: 12.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.284e-05/0.1504, allocations: 79.86 kB / 301.4 MB, free: 12.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006907/0.1511, allocations: 0.8704 MB / 302.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.1511, allocations: 30.67 kB / 302.3 MB, free: 12.49 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002371/0.1514, allocations: 0.5079 MB / 302.8 MB, free: 12.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.69e-05/0.1514, allocations: 82 kB / 302.8 MB, free: 12.26 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-05/0.1515, allocations: 67.08 kB / 302.9 MB, free: 12.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.239e-05/0.1515, allocations: 493.2 kB / 303.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.259e-05/0.1516, allocations: 43.28 kB / 303.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.631e-05/0.1517, allocations: 176.8 kB / 303.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001707/0.1519, allocations: 203.7 kB / 303.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.1519, allocations: 0 / 303.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003833/0.1522, allocations: 359 kB / 304.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.1523, allocations: 9.875 kB / 304.2 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.365e-05/0.1523, allocations: 18.53 kB / 304.2 MB, free: 11.28 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002799/0.1526, allocations: 128.8 kB / 304.3 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.1527, allocations: 42.56 kB / 304.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003559/0.153, allocations: 0.9197 MB / 305.3 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.1532, allocations: 28.98 kB / 305.3 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.795e-05/0.1532, allocations: 18.97 kB / 305.3 MB, free: 10.39 MB / 266.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.0001152/0.1533, allocations: 163.7 kB / 305.5 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.04e-05/0.1534, allocations: 117.6 kB / 305.6 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004193/0.1538, allocations: 342.1 kB / 305.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/0.1538, allocations: 3.125 kB / 305.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1538, allocations: 3.141 kB / 305.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1538, allocations: 0 / 305.9 MB, free: 10.03 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004345/0.1543, allocations: 495 kB / 306.4 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.366e-05/0.1543, allocations: 12.89 kB / 306.4 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.103e-05/0.1543, allocations: 26.08 kB / 306.5 MB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001676/0.1545, allocations: 123.3 kB / 306.6 MB, free: 9.711 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.1545, allocations: 10.78 kB / 306.6 MB, free: 9.707 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002867/0.1548, allocations: 0.9152 MB / 307.5 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.1548, allocations: 12.38 kB / 307.5 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002812/0.1551, allocations: 453.1 kB / 308 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.188e-05/0.1552, allocations: 99.12 kB / 308 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.414e-05/0.1552, allocations: 7.938 kB / 308.1 MB, free: 8.512 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.1553, allocations: 7.312 kB / 308.1 MB, free: 8.512 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.997e-05/0.1554, allocations: 17.83 kB / 308.1 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.1554, allocations: 12.39 kB / 308.1 MB, free: 8.508 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000333/0.1557, allocations: 0.5145 MB / 308.6 MB, free: 8.266 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1557, allocations: 0 / 308.6 MB, free: 8.266 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004449/0.1562, allocations: 206.2 kB / 308.8 MB, free: 8.23 MB / 266.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.0004043/0.1566, allocations: 323.4 kB / 309.1 MB, free: 8.109 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003351/0.1569, allocations: 231.6 kB / 309.4 MB, free: 8.016 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1569, allocations: 0 / 309.4 MB, free: 8.016 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.157, allocations: 166.1 kB / 309.5 MB, free: 7.922 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005013/0.1575, allocations: 162 kB / 309.7 MB, free: 7.867 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001123/0.1587, allocations: 1.169 MB / 310.8 MB, free: 7.191 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.015e-05/0.1587, allocations: 143.1 kB / 311 MB, free: 7.113 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001806/0.1589, allocations: 108.8 kB / 311.1 MB, free: 7.082 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.034e-05/0.159, allocations: 53.14 kB / 311.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.159, allocations: 3.594 kB / 311.1 MB, free: 7.07 MB / 266.7 MB Notification: Performance of Templates: time 0.01086/0.1698, allocations: 8.792 MB / 319.9 MB, free: 15.38 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.085962367709726]