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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 174.9 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 221.5 MB / 230.3 MB, free: 7.562 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009146/0.0009146, allocations: 85.86 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.448e-05/1.451e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 50.42 MB / 387.5 MB, free: 7.586 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3291/0.4323, allocations: 90.75 MB / 478.2 MB, free: 4.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002092/0.4325, allocations: 67.97 kB / 478.3 MB, free: 4.023 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08016/0.5127, allocations: 36.12 MB / 0.5023 GB, free: 15.64 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.5128, allocations: 4 kB / 0.5023 GB, free: 15.64 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.681e-05/0.5128, allocations: 12 kB / 0.5024 GB, free: 15.63 MB / 394.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.00162/0.5144, allocations: 1.035 MB / 0.5034 GB, free: 14.55 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.5145, allocations: 12.03 kB / 0.5034 GB, free: 14.54 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001337/0.5146, allocations: 110.7 kB / 0.5035 GB, free: 14.43 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.5157, allocations: 0.7429 MB / 0.5042 GB, free: 13.63 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.5157, allocations: 11.95 kB / 0.5042 GB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.383e-05/0.5157, allocations: 23.98 kB / 0.5042 GB, free: 13.6 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003573/0.5161, allocations: 201.1 kB / 0.5044 GB, free: 13.4 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004144/0.5165, allocations: 258.6 kB / 0.5047 GB, free: 13.14 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.5165, allocations: 3.938 kB / 0.5047 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.729e-05/0.5166, allocations: 0 / 0.5047 GB, free: 13.13 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.308e-05/0.5166, allocations: 8 kB / 0.5047 GB, free: 13.12 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001714/0.5183, allocations: 1.133 MB / 0.5058 GB, free: 11.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003096/0.5186, allocations: 186.6 kB / 0.506 GB, free: 11.74 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003068/0.519, allocations: 229.2 kB / 0.5062 GB, free: 11.51 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0108/0.5298, allocations: 10.76 MB / 0.5167 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.458e-05/0.5299, allocations: 54.39 kB / 0.5168 GB, free: 14.85 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 2.084e-06/0.5299, allocations: 3.938 kB / 0.5168 GB, free: 14.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006708/0.5306, allocations: 335.9 kB / 0.5171 GB, free: 14.51 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.181e-05/0.5306, allocations: 81.11 kB / 0.5172 GB, free: 14.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007912/0.5314, allocations: 0.6011 MB / 0.5177 GB, free: 13.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.453e-05/0.5314, allocations: 29.7 kB / 0.5178 GB, free: 13.76 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003581/0.5318, allocations: 432.2 kB / 0.5182 GB, free: 13.34 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.934e-05/0.5319, allocations: 78.84 kB / 0.5183 GB, free: 13.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.29e-05/0.5319, allocations: 0 / 0.5183 GB, free: 13.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.532, allocations: 314 kB / 0.5186 GB, free: 12.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.763e-05/0.5321, allocations: 60.22 kB / 0.5186 GB, free: 12.89 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.5323, allocations: 129.7 kB / 0.5187 GB, free: 12.73 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001521/0.5324, allocations: 71.94 kB / 0.5188 GB, free: 12.66 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.5324, allocations: 8 kB / 0.5188 GB, free: 12.65 MB / 410.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005167/0.533, allocations: 364.4 kB / 0.5192 GB, free: 12.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/0.533, allocations: 4.938 kB / 0.5192 GB, free: 12.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.295e-05/0.533, allocations: 19.98 kB / 0.5192 GB, free: 12.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003204/0.5334, allocations: 138.5 kB / 0.5193 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.5335, allocations: 35.97 kB / 0.5194 GB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006385/0.5342, allocations: 0.7163 MB / 0.5201 GB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000296/0.5345, allocations: 27.64 kB / 0.5201 GB, free: 11.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.655e-05/0.5345, allocations: 16 kB / 0.5201 GB, free: 11.3 MB / 410.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: J1.Dinternal:VARIABLE(unit = "V" ) type: Real 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0001449/0.5347, allocations: 110.5 kB / 0.5202 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.5348, allocations: 106.8 kB / 0.5203 GB, free: 11.09 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008393/0.5357, allocations: 391.3 kB / 0.5207 GB, free: 10.69 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.5357, allocations: 8 kB / 0.5207 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5357, allocations: 0 / 0.5207 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.5357, allocations: 0 / 0.5207 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005785/0.5363, allocations: 474.9 kB / 0.5211 GB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.359e-05/0.5363, allocations: 19.94 kB / 0.5212 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.5365, allocations: 15.98 kB / 0.5212 GB, free: 10.15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002514/0.5367, allocations: 134.4 kB / 0.5213 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.912e-05/0.5367, allocations: 8 kB / 0.5213 GB, free: 10.01 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005879/0.5373, allocations: 0.7084 MB / 0.522 GB, free: 9.273 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5374, allocations: 0 / 0.522 GB, free: 9.273 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00053/0.5379, allocations: 440.1 kB / 0.5224 GB, free: 8.824 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001871/0.5381, allocations: 167.9 kB / 0.5226 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.897e-05/0.5382, allocations: 0 / 0.5226 GB, free: 8.641 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002256/0.5384, allocations: 7.984 kB / 0.5226 GB, free: 8.633 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.783e-05/0.5385, allocations: 15.92 kB / 0.5226 GB, free: 8.617 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.5385, allocations: 12 kB / 0.5226 GB, free: 8.605 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005364/0.539, allocations: 478.9 kB / 0.5231 GB, free: 8.129 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.539, allocations: 3.938 kB / 0.5231 GB, free: 8.125 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006335/0.5397, allocations: 207.6 kB / 0.5233 GB, free: 7.922 MB / 410.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004859/0.5402, allocations: 323.4 kB / 0.5236 GB, free: 7.598 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004694/0.5407, allocations: 251.7 kB / 0.5238 GB, free: 7.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.5407, allocations: 7.938 kB / 0.5238 GB, free: 7.332 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002527/0.5409, allocations: 166.1 kB / 0.524 GB, free: 7.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006539/0.5416, allocations: 145.9 kB / 0.5241 GB, free: 7.02 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.5431, allocations: 0.8188 MB / 0.5249 GB, free: 6.172 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004863/0.5436, allocations: 0.9526 MB / 0.5259 GB, free: 5.191 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003478/0.544, allocations: 97.92 kB / 0.5259 GB, free: 5.094 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.619e-05/0.544, allocations: 43.44 kB / 0.526 GB, free: 5.051 MB / 410.7 MB Notification: Performance of SimCode: time 2.6e-07/0.544, allocations: 0 / 0.526 GB, free: 5.051 MB / 410.7 MB Notification: Performance of Templates: time 0.01492/0.559, allocations: 7.864 MB / 0.5337 GB, free: 13.26 MB / 426.7 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","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches