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.0009683/0.0009683, allocations: 84.3 kB / 22.21 MB, free: 2.285 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.001231/0.001231, allocations: 169.2 kB / 25.61 MB, free: 8.09 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.9274/0.9274, allocations: 158.6 MB / 187.5 MB, free: 2.805 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: 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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.275e-05/1.451e-05, allocations: 2.312 kB / 251.5 MB, free: 7.25 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.003971/0.003986, allocations: 4.882 MB / 256.3 MB, free: 2.34 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.006392/0.01038, allocations: 8.109 MB / 264.5 MB, free: 10.2 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003205/0.0107, allocations: 59.38 kB / 264.5 MB, free: 10.14 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005651/0.01126, allocations: 345.5 kB / 264.8 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00116/0.01242, allocations: 0.8647 MB / 265.7 MB, free: 8.926 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007103/0.01313, allocations: 0.6062 MB / 266.3 MB, free: 8.316 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001317/0.01445, allocations: 1.736 MB / 268.1 MB, free: 6.574 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001506/0.0146, allocations: 99.38 kB / 268.1 MB, free: 6.465 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005968/0.0152, allocations: 0.7929 MB / 268.9 MB, free: 5.672 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000439/0.01564, allocations: 243.2 kB / 269.2 MB, free: 5.434 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.125e-05/0.01568, allocations: 28 kB / 269.2 MB, free: 5.406 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006011/0.01628, allocations: 0.5268 MB / 269.7 MB, free: 4.879 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.732e-05/0.01634, allocations: 107.3 kB / 269.8 MB, free: 4.773 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.01648, allocations: 231.3 kB / 270.1 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007396/0.01722, allocations: 0.946 MB / 271 MB, free: 3.598 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.713e-06/0.01722, allocations: 0 / 271 MB, free: 3.598 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.81e-07/0.01722, allocations: 0 / 271 MB, free: 3.598 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.01723, allocations: 0 / 271 MB, free: 3.598 MB / 250.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.001037/0.01827, allocations: 1.369 MB / 272.4 MB, free: 2.188 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.0183, allocations: 15.98 kB / 272.4 MB, free: 2.172 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.0184, allocations: 144.2 kB / 272.5 MB, free: 2.031 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000668/0.01907, allocations: 0.8419 MB / 273.4 MB, free: 1.125 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.01908, allocations: 20.44 kB / 273.4 MB, free: 1.105 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.01912, allocations: 27.95 kB / 273.4 MB, free: 1.078 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002582/0.01938, allocations: 271.8 kB / 273.7 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.647e-06/0.01939, allocations: 0 / 273.7 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.0194, allocations: 8 kB / 273.7 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.01941, allocations: 11.98 kB / 273.7 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.01954, allocations: 114.2 kB / 273.8 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008755/0.02042, allocations: 0.9424 MB / 274.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001562/0.02057, allocations: 129.8 kB / 274.9 MB, free: 15.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.0207, allocations: 148.1 kB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003682/0.02438, allocations: 3.367 MB / 278.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.219e-05/0.02441, allocations: 41.33 kB / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of pre-optimization done (n=23): time 1.162e-06/0.02441, allocations: 0 / 278.4 MB, free: 11.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007621/0.02517, allocations: 496.3 kB / 278.9 MB, free: 11.44 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.019e-05/0.0252, allocations: 81.11 kB / 279 MB, free: 11.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005177/0.02572, allocations: 0.8624 MB / 279.9 MB, free: 10.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.61e-05/0.02573, allocations: 25.7 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003054/0.02604, allocations: 0.527 MB / 280.4 MB, free: 9.898 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.366e-05/0.02608, allocations: 83.25 kB / 280.5 MB, free: 9.816 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.978e-05/0.02615, allocations: 67.56 kB / 280.6 MB, free: 9.742 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.02627, allocations: 496.4 kB / 281.1 MB, free: 9.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.87e-05/0.02631, allocations: 32.22 kB / 281.1 MB, free: 9.219 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.639e-05/0.02641, allocations: 170.7 kB / 281.3 MB, free: 9 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000145/0.02655, allocations: 185.2 kB / 281.4 MB, free: 8.777 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.02656, allocations: 0 / 281.4 MB, free: 8.777 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002877/0.02684, allocations: 348.2 kB / 281.8 MB, free: 8.426 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.02685, allocations: 4 kB / 281.8 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.819e-05/0.02687, allocations: 12 kB / 281.8 MB, free: 8.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002031/0.02708, allocations: 127.9 kB / 281.9 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.583e-05/0.02716, allocations: 39.91 kB / 282 MB, free: 8.242 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004011/0.02756, allocations: 0.9127 MB / 282.9 MB, free: 7.301 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.02768, allocations: 23.84 kB / 282.9 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.0277, allocations: 11.94 kB / 282.9 MB, free: 7.266 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.0001186/0.02782, allocations: 180.5 kB / 283.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.217e-05/0.02789, allocations: 107.3 kB / 283.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005987/0.02849, allocations: 334.2 kB / 283.5 MB, free: 6.637 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.0285, allocations: 4 kB / 283.5 MB, free: 6.633 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.0285, allocations: 0 / 283.5 MB, free: 6.633 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.0285, allocations: 7.938 kB / 283.5 MB, free: 6.625 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000305/0.02881, allocations: 349.9 kB / 283.9 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.02882, allocations: 12 kB / 283.9 MB, free: 6.246 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.587e-05/0.02887, allocations: 19.97 kB / 283.9 MB, free: 6.227 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00016/0.02903, allocations: 115.6 kB / 284 MB, free: 6.109 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.02904, allocations: 8 kB / 284 MB, free: 6.102 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000354/0.0294, allocations: 0.9247 MB / 284.9 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.0294, allocations: 0 / 284.9 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002667/0.02967, allocations: 435.7 kB / 285.4 MB, free: 4.695 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.35e-05/0.02976, allocations: 103.2 kB / 285.5 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/0.0298, allocations: 3.984 kB / 285.5 MB, free: 4.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.0299, allocations: 8 kB / 285.5 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.751e-05/0.02993, allocations: 7.984 kB / 285.5 MB, free: 4.574 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.02994, allocations: 12 kB / 285.5 MB, free: 4.562 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002792/0.03022, allocations: 0.4985 MB / 286 MB, free: 4.055 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.03022, allocations: 0 / 286 MB, free: 4.055 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003268/0.03054, allocations: 203.6 kB / 286.2 MB, free: 3.855 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.0003616/0.03091, allocations: 343.4 kB / 286.5 MB, free: 3.508 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000257/0.03116, allocations: 209.2 kB / 286.7 MB, free: 3.289 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.03116, allocations: 0.5625 kB / 286.7 MB, free: 3.289 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.03128, allocations: 159.2 kB / 286.9 MB, free: 3.117 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003681/0.03165, allocations: 148.1 kB / 287 MB, free: 2.969 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.03269, allocations: 1.165 MB / 288.2 MB, free: 1.762 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.626e-05/0.03277, allocations: 142.2 kB / 288.3 MB, free: 1.602 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001673/0.03293, allocations: 106.7 kB / 288.4 MB, free: 1.492 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001848/0.03312, allocations: 222.1 kB / 288.7 MB, free: 1.273 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.03312, allocations: 0 / 288.7 MB, free: 1.273 MB / 266.7 MB Notification: Performance of Templates: time 0.01241/0.04553, allocations: 9.857 MB / 298.5 MB, free: 7.461 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile [Timeout 660] (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 & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7815038389526308]