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.0009968/0.0009969, allocations: 109.5 kB / 16.62 MB, free: 6.961 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.001009/0.001009, allocations: 189.8 kB / 17.54 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009362/0.0009362, allocations: 51.95 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08247/0.08342, allocations: 49.44 MB / 349.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005452/0.08891, allocations: 5.304 MB / 354.9 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009382/0.09832, allocations: 9.023 MB / 363.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005194/0.09888, allocations: 19.88 kB / 363.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008465/0.09978, allocations: 338.2 kB / 364.2 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001904/0.1017, allocations: 0.7106 MB / 365 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.103, allocations: 0.5176 MB / 365.5 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002022/0.105, allocations: 1.705 MB / 367.2 MB, free: 3.078 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002392/0.1053, allocations: 155.1 kB / 367.3 MB, free: 2.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003274/0.1056, allocations: 298.5 kB / 367.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000313/0.1059, allocations: 318 kB / 367.9 MB, free: 2.305 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.503e-05/0.106, allocations: 32 kB / 368 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001085/0.1071, allocations: 0.6593 MB / 368.6 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.702e-05/0.1072, allocations: 99.33 kB / 368.7 MB, free: 1.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003042/0.1075, allocations: 405.5 kB / 369.1 MB, free: 1.117 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.14/0.2475, allocations: 1.186 MB / 370.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.2475, allocations: 1 kB / 370.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2475, allocations: 0 / 370.3 MB, free: 14.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.208e-05/0.2476, allocations: 0 / 370.3 MB, free: 14.1 MB / 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.001846/0.2494, allocations: 1.273 MB / 371.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.2495, allocations: 8.781 kB / 371.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000145/0.2496, allocations: 114.1 kB / 371.7 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001213/0.2508, allocations: 0.8529 MB / 372.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.2509, allocations: 17.47 kB / 372.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.295e-05/0.2509, allocations: 32.16 kB / 372.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005448/0.2515, allocations: 305.7 kB / 372.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.2515, allocations: 1.719 kB / 372.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/0.2515, allocations: 10.3 kB / 372.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.2516, allocations: 11.28 kB / 372.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004231/0.252, allocations: 231.2 kB / 373.1 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.2538, allocations: 1.191 MB / 374.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000348/0.2542, allocations: 202.1 kB / 374.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003086/0.2545, allocations: 224.9 kB / 374.8 MB, free: 12.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007127/0.2616, allocations: 8.561 MB / 383.3 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.944e-05/0.2617, allocations: 39.23 kB / 383.4 MB, free: 5.055 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.505e-06/0.2617, allocations: 2.188 kB / 383.4 MB, free: 5.055 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001532/0.2632, allocations: 0.6605 MB / 384 MB, free: 4.844 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.653e-05/0.2633, allocations: 83.47 kB / 384.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009634/0.2643, allocations: 0.7952 MB / 384.9 MB, free: 4.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.2643, allocations: 29.45 kB / 384.9 MB, free: 4.574 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002793/0.2646, allocations: 444 kB / 385.4 MB, free: 4.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.371e-05/0.2646, allocations: 78.05 kB / 385.4 MB, free: 4.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.038e-05/0.2647, allocations: 55.27 kB / 385.5 MB, free: 4.383 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.123e-05/0.2648, allocations: 320 kB / 385.8 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.2649, allocations: 75.31 kB / 385.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.2651, allocations: 141.4 kB / 386 MB, free: 3.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003028/0.2654, allocations: 235.1 kB / 386.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.2654, allocations: 3.938 kB / 386.2 MB, free: 3.824 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005804/0.266, allocations: 404 kB / 386.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.2661, allocations: 6.812 kB / 386.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.282e-05/0.2661, allocations: 22.73 kB / 386.7 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003743/0.2665, allocations: 135.9 kB / 386.8 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.2667, allocations: 36.66 kB / 386.8 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005121/0.2672, allocations: 0.7072 MB / 387.5 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002634/0.2674, allocations: 32.78 kB / 387.6 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.243e-05/0.2675, allocations: 12.42 kB / 387.6 MB, free: 2.992 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.000185/0.2677, allocations: 198 kB / 387.8 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.2678, allocations: 103 kB / 387.9 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007533/0.2685, allocations: 409.1 kB / 388.3 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.2686, allocations: 8.875 kB / 388.3 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2686, allocations: 1.484 kB / 388.3 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2686, allocations: 2.266 kB / 388.3 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005685/0.2692, allocations: 0.5036 MB / 388.8 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.061e-05/0.2692, allocations: 11.69 kB / 388.8 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.2693, allocations: 23.81 kB / 388.8 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002615/0.2696, allocations: 135.3 kB / 389 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.2696, allocations: 13.44 kB / 389 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004397/0.2701, allocations: 0.7043 MB / 389.7 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2701, allocations: 0 / 389.7 MB, free: 1.633 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004943/0.2706, allocations: 458 kB / 390.1 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.2707, allocations: 174.5 kB / 390.3 MB, free: 1.207 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.559e-05/0.2708, allocations: 1.062 kB / 390.3 MB, free: 1.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.271, allocations: 11.22 kB / 390.3 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.758e-05/0.2711, allocations: 20.05 kB / 390.3 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-05/0.2711, allocations: 7.656 kB / 390.3 MB, free: 1.195 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005363/0.2717, allocations: 0.5416 MB / 390.9 MB, free: 0.957 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2717, allocations: 1.281 kB / 390.9 MB, free: 0.957 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005702/0.2722, allocations: 196.7 kB / 391.1 MB, free: 0.9258 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.0004308/0.2727, allocations: 299.3 kB / 391.4 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005128/0.2732, allocations: 293.2 kB / 391.6 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2732, allocations: 0 / 391.6 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000267/0.2735, allocations: 175.6 kB / 391.8 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007032/0.2742, allocations: 171.6 kB / 392 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.2759, allocations: 1.459 MB / 393.4 MB, free: 15.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004857/0.2764, allocations: 0.9382 MB / 394.4 MB, free: 14.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000368/0.2768, allocations: 105.8 kB / 394.5 MB, free: 14.88 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.128e-05/0.2769, allocations: 50.33 kB / 394.5 MB, free: 14.87 MB / 318.1 MB Notification: Performance of SimCode: time 9.51e-07/0.2769, allocations: 0 / 394.5 MB, free: 14.87 MB / 318.1 MB Notification: Performance of Templates: time 0.01524/0.2921, allocations: 9.037 MB / 403.6 MB, free: 10.75 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins/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