Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00147/0.001471, allocations: 112.2 kB / 17.17 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 194.9 kB / 18.08 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.055/2.055, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 46.58 kB / 300.6 MB, free: 6.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1348, allocations: 49.45 MB / 350.1 MB, free: 4.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.008224/0.1431, allocations: 5.299 MB / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01527/0.1584, allocations: 9.234 MB / 364.6 MB, free: 6.184 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001068/0.1596, allocations: 19.81 kB / 364.6 MB, free: 6.164 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0015/0.1612, allocations: 342.2 kB / 364.9 MB, free: 5.828 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003679/0.1648, allocations: 0.6911 MB / 365.6 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002592/0.1675, allocations: 470 kB / 366.1 MB, free: 4.672 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003719/0.1712, allocations: 1.654 MB / 367.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003991/0.1716, allocations: 151.6 kB / 367.9 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006331/0.1723, allocations: 282.5 kB / 368.2 MB, free: 2.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005004/0.1728, allocations: 317.9 kB / 368.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.929e-05/0.1729, allocations: 24 kB / 368.5 MB, free: 2.234 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002465/0.1754, allocations: 0.6398 MB / 369.1 MB, free: 1.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001494/0.1755, allocations: 95.31 kB / 369.2 MB, free: 1.5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005478/0.1761, allocations: 397.5 kB / 369.6 MB, free: 1.109 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.1775, allocations: 0.865 MB / 370.5 MB, free: 248 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.13e-05/0.1775, allocations: 4 kB / 370.5 MB, free: 244 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.1775, allocations: 3.938 kB / 370.5 MB, free: 240 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.1775, allocations: 4 kB / 370.5 MB, free: 236 kB / 302.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.2735/0.4511, allocations: 1.27 MB / 371.8 MB, free: 26.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.063e-05/0.4512, allocations: 13.34 kB / 371.8 MB, free: 26.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003067/0.4515, allocations: 112.5 kB / 371.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/0.4536, allocations: 0.8502 MB / 372.7 MB, free: 26.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.4537, allocations: 17.78 kB / 372.8 MB, free: 26.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.683e-05/0.4538, allocations: 26.22 kB / 372.8 MB, free: 26.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008536/0.4546, allocations: 304.3 kB / 373.1 MB, free: 26.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.4547, allocations: 1.594 kB / 373.1 MB, free: 26.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.58e-05/0.4547, allocations: 15.69 kB / 373.1 MB, free: 26.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.338e-05/0.4548, allocations: 8.312 kB / 373.1 MB, free: 26.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007291/0.4555, allocations: 237.5 kB / 373.3 MB, free: 26.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003028/0.4586, allocations: 1.189 MB / 374.5 MB, free: 25.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006141/0.4592, allocations: 196 kB / 374.7 MB, free: 25.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004687/0.4597, allocations: 228.9 kB / 374.9 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01174/0.4714, allocations: 8.565 MB / 383.5 MB, free: 17.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.879e-05/0.4716, allocations: 33.12 kB / 383.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 3.446e-06/0.4716, allocations: 0 / 383.5 MB, free: 17.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.002362/0.4739, allocations: 0.6621 MB / 384.2 MB, free: 17.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.474, allocations: 83.77 kB / 384.3 MB, free: 16.98 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.4754, allocations: 0.7943 MB / 385.1 MB, free: 16.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.761e-05/0.4754, allocations: 26.8 kB / 385.1 MB, free: 16.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003962/0.4758, allocations: 452.5 kB / 385.5 MB, free: 16.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.025e-05/0.4759, allocations: 75.91 kB / 385.6 MB, free: 16.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.476, allocations: 53.83 kB / 385.7 MB, free: 16.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.285e-05/0.4761, allocations: 317.8 kB / 386 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002357/0.4764, allocations: 63.75 kB / 386 MB, free: 15.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000289/0.4767, allocations: 151.1 kB / 386.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004867/0.4772, allocations: 226.9 kB / 386.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.4772, allocations: 1.344 kB / 386.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009708/0.4782, allocations: 413 kB / 386.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.4782, allocations: 10 kB / 386.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.818e-05/0.4783, allocations: 19.14 kB / 386.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005376/0.4788, allocations: 138 kB / 387 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002467/0.4791, allocations: 36.06 kB / 387 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007616/0.4799, allocations: 0.7081 MB / 387.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004824/0.4804, allocations: 28.58 kB / 387.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.596e-05/0.4804, allocations: 17.31 kB / 387.8 MB, free: 14.73 MB / 302.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.0003581/0.4808, allocations: 198.5 kB / 388 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.481, allocations: 102.8 kB / 388.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.4821, allocations: 415.1 kB / 388.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.156e-06/0.4822, allocations: 6.031 kB / 388.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4822, allocations: 0 / 388.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.4822, allocations: 2.672 kB / 388.5 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009064/0.4831, allocations: 0.5081 MB / 389 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.314e-05/0.4832, allocations: 21.3 kB / 389 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001773/0.4833, allocations: 16.41 kB / 389 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004243/0.4838, allocations: 132 kB / 389.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.4838, allocations: 9.094 kB / 389.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007321/0.4846, allocations: 0.7107 MB / 389.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4846, allocations: 0.6094 kB / 389.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009235/0.4855, allocations: 450.7 kB / 390.3 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003259/0.4859, allocations: 173.8 kB / 390.5 MB, free: 12.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001341/0.486, allocations: 9.891 kB / 390.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003675/0.4864, allocations: 4.109 kB / 390.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.339e-05/0.4865, allocations: 16.58 kB / 390.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.101e-05/0.4865, allocations: 9.266 kB / 390.5 MB, free: 12.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001127/0.4877, allocations: 0.5417 MB / 391.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.483e-06/0.4877, allocations: 0 / 391.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001093/0.4888, allocations: 197.2 kB / 391.3 MB, free: 12.64 MB / 302.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.0007934/0.4896, allocations: 301.6 kB / 391.5 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008759/0.4905, allocations: 289.4 kB / 391.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.4905, allocations: 0 / 391.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004093/0.4909, allocations: 179.3 kB / 392 MB, free: 12.26 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001233/0.4921, allocations: 158.3 kB / 392.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002973/0.4951, allocations: 1.488 MB / 393.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004893/0.4956, allocations: 0.942 MB / 394.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/0.4958, allocations: 50.38 kB / 394.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4958, allocations: 1.406 kB / 394.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Templates: time 0.02842/0.5242, allocations: 14.33 MB / 409 MB, free: 14.99 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches