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.0009692/0.0009693, allocations: 177.1 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 221.3 MB / 235.5 MB, free: 2.867 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.0008129/0.0008129, allocations: 94.2 kB / 286.5 MB, free: 172 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.316e-05/2.319e-05, allocations: 7.984 kB / 343.8 MB, free: 4.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09664/0.09668, allocations: 50.41 MB / 394.2 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3279/0.4246, allocations: 91.42 MB / 485.7 MB, free: 12.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.4249, allocations: 79.72 kB / 485.7 MB, free: 12.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08318/0.5081, allocations: 37.4 MB / 0.5109 GB, free: 6.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.5081, allocations: 0 / 0.5109 GB, free: 6.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.304e-05/0.5082, allocations: 20 kB / 0.5109 GB, free: 6.32 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.002525/0.5107, allocations: 1.025 MB / 0.5119 GB, free: 5.25 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.5108, allocations: 8.031 kB / 0.5119 GB, free: 5.242 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002654/0.5111, allocations: 110.7 kB / 0.512 GB, free: 5.133 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001914/0.513, allocations: 0.7584 MB / 0.5127 GB, free: 4.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.6e-05/0.5131, allocations: 20.52 kB / 0.5128 GB, free: 4.301 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.623e-05/0.5132, allocations: 24 kB / 0.5128 GB, free: 4.277 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008357/0.514, allocations: 299.7 kB / 0.5131 GB, free: 3.973 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.5141, allocations: 0 / 0.5131 GB, free: 3.973 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.341e-05/0.5141, allocations: 15.98 kB / 0.5131 GB, free: 3.957 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.5142, allocations: 4 kB / 0.5131 GB, free: 3.953 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006602/0.5148, allocations: 226.2 kB / 0.5133 GB, free: 3.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003019/0.5179, allocations: 1.207 MB / 0.5145 GB, free: 2.449 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000551/0.5184, allocations: 194.6 kB / 0.5147 GB, free: 2.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005525/0.519, allocations: 226.4 kB / 0.5149 GB, free: 2.023 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01951/0.5385, allocations: 10.79 MB / 0.5254 GB, free: 5.398 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.814e-05/0.5386, allocations: 30.56 kB / 0.5255 GB, free: 5.359 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 4.328e-06/0.5387, allocations: 4 kB / 0.5255 GB, free: 5.355 MB / 410.7 MB Notification: Performance of matching and sorting (n=23): time 0.00113/0.5398, allocations: 354 kB / 0.5258 GB, free: 5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.034e-05/0.5399, allocations: 77.11 kB / 0.5259 GB, free: 4.906 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001524/0.5415, allocations: 0.6653 MB / 0.5265 GB, free: 4.223 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.864e-05/0.5415, allocations: 29.7 kB / 0.5265 GB, free: 4.188 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005498/0.5421, allocations: 440.4 kB / 0.527 GB, free: 3.754 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.778e-05/0.5422, allocations: 74.91 kB / 0.527 GB, free: 3.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.05e-05/0.5422, allocations: 8 kB / 0.527 GB, free: 3.672 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.5424, allocations: 314 kB / 0.5273 GB, free: 3.359 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002014/0.5426, allocations: 60.23 kB / 0.5274 GB, free: 3.301 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002966/0.5429, allocations: 137.8 kB / 0.5275 GB, free: 3.133 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002745/0.5432, allocations: 83.03 kB / 0.5276 GB, free: 3.055 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.5433, allocations: 4 kB / 0.5276 GB, free: 3.051 MB / 410.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008815/0.5441, allocations: 392.8 kB / 0.528 GB, free: 2.656 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.5442, allocations: 8 kB / 0.528 GB, free: 2.648 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-05/0.5443, allocations: 19.98 kB / 0.528 GB, free: 2.629 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005199/0.5448, allocations: 138.3 kB / 0.5281 GB, free: 2.492 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002517/0.5451, allocations: 35.97 kB / 0.5282 GB, free: 2.457 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008951/0.546, allocations: 0.716 MB / 0.5289 GB, free: 1.719 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004643/0.5464, allocations: 19.78 kB / 0.5289 GB, free: 1.699 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-05/0.5465, allocations: 16 kB / 0.5289 GB, free: 1.684 MB / 410.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 () * 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.0001337/0.5467, allocations: 120.9 kB / 0.529 GB, free: 1.559 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.5468, allocations: 102.8 kB / 0.5291 GB, free: 1.457 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001372/0.5482, allocations: 426.4 kB / 0.5295 GB, free: 1.031 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-06/0.5483, allocations: 4 kB / 0.5295 GB, free: 1.027 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.368e-06/0.5483, allocations: 0 / 0.5295 GB, free: 1.027 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.5483, allocations: 3.938 kB / 0.5295 GB, free: 1.023 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009193/0.5492, allocations: 0.5073 MB / 0.53 GB, free: 480 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.151e-05/0.5493, allocations: 12 kB / 0.5301 GB, free: 468 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.5494, allocations: 23.97 kB / 0.5301 GB, free: 444 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003947/0.5499, allocations: 132.8 kB / 0.5302 GB, free: 308 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.906e-05/0.5499, allocations: 12 kB / 0.5302 GB, free: 296 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007425/0.5506, allocations: 0.6982 MB / 0.5309 GB, free: 15.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.5507, allocations: 7.984 kB / 0.5309 GB, free: 15.56 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007787/0.5515, allocations: 452.2 kB / 0.5313 GB, free: 15.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002851/0.5518, allocations: 175.8 kB / 0.5315 GB, free: 14.91 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001049/0.5519, allocations: 4 kB / 0.5315 GB, free: 14.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000341/0.5522, allocations: 8 kB / 0.5315 GB, free: 14.89 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.819e-05/0.5523, allocations: 15.92 kB / 0.5315 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.286e-05/0.5524, allocations: 19.98 kB / 0.5315 GB, free: 14.86 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008625/0.5532, allocations: 0.5197 MB / 0.5321 GB, free: 14.33 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5532, allocations: 0 / 0.5321 GB, free: 14.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000673/0.5539, allocations: 211.7 kB / 0.5323 GB, free: 14.12 MB / 426.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.0005084/0.5544, allocations: 323.3 kB / 0.5326 GB, free: 13.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005156/0.555, allocations: 267.7 kB / 0.5328 GB, free: 13.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.555, allocations: 0 / 0.5328 GB, free: 13.52 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002635/0.5552, allocations: 174.5 kB / 0.533 GB, free: 13.34 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006249/0.5559, allocations: 147 kB / 0.5331 GB, free: 13.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.5573, allocations: 0.8287 MB / 0.5339 GB, free: 12.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.5578, allocations: 0.9646 MB / 0.5349 GB, free: 11.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000331/0.5581, allocations: 94.02 kB / 0.535 GB, free: 11.25 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.866e-05/0.5582, allocations: 51.44 kB / 0.535 GB, free: 11.2 MB / 426.7 MB Notification: Performance of SimCode: time 5.21e-07/0.5582, allocations: 0 / 0.535 GB, free: 11.2 MB / 426.7 MB Notification: Performance of Templates: time 0.01637/0.5746, allocations: 8.983 MB / 0.5438 GB, free: 2.285 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