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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_3.2.3_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_3.2.3_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.001469/0.001469, allocations: 106.5 kB / 17.73 MB, free: 5.367 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.001654/0.001654, allocations: 183.1 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.502/1.502, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 55.91 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1269, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.2066/0.3335, allocations: 5.13 MB / 380.3 MB, free: 9.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009065/0.3426, allocations: 8.679 MB / 388.9 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005694/0.3432, allocations: 38.28 kB / 389 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009633/0.3443, allocations: 388.3 kB / 389.4 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002473/0.3468, allocations: 0.8315 MB / 390.2 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001731/0.3485, allocations: 0.5733 MB / 390.8 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002602/0.3511, allocations: 1.651 MB / 392.4 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002744/0.3514, allocations: 164.9 kB / 392.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000426/0.3518, allocations: 280.9 kB / 392.9 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003669/0.3522, allocations: 321.6 kB / 393.2 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.665e-05/0.3523, allocations: 30.31 kB / 393.2 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001629/0.3539, allocations: 0.5566 MB / 393.8 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.61e-05/0.354, allocations: 108 kB / 393.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003002/0.3543, allocations: 405.4 kB / 394.3 MB, free: 2.988 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001379/0.3557, allocations: 1.195 MB / 395.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3557, allocations: 2.516 kB / 395.5 MB, free: 2.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3557, allocations: 4 kB / 395.5 MB, free: 2.488 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.3558, allocations: 0 / 395.5 MB, free: 2.488 MB / 318.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.001687/0.3574, allocations: 1.267 MB / 396.7 MB, free: 1.578 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.3575, allocations: 8.375 kB / 396.7 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001388/0.3576, allocations: 113.2 kB / 396.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.3588, allocations: 0.8548 MB / 397.7 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.3588, allocations: 22.19 kB / 397.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.384e-05/0.3589, allocations: 29.48 kB / 397.7 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00055/0.3594, allocations: 309.5 kB / 398.1 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.3594, allocations: 0.9688 kB / 398.1 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.3595, allocations: 10.12 kB / 398.1 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.359e-05/0.3595, allocations: 7.656 kB / 398.1 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004422/0.3599, allocations: 234.6 kB / 398.3 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001694/0.3616, allocations: 1.186 MB / 399.5 MB, free: 0 / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.3621, allocations: 209.7 kB / 399.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003451/0.3624, allocations: 225.2 kB / 399.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00869/0.3711, allocations: 8.563 MB / 408.5 MB, free: 7.945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.974e-05/0.3712, allocations: 35.53 kB / 408.5 MB, free: 7.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.444e-06/0.3712, allocations: 0 / 408.5 MB, free: 7.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001624/0.3728, allocations: 0.666 MB / 409.2 MB, free: 7.496 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.3729, allocations: 83.62 kB / 409.3 MB, free: 7.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009238/0.3738, allocations: 0.7946 MB / 410 MB, free: 6.945 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.036e-05/0.3739, allocations: 30.8 kB / 410.1 MB, free: 6.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003545/0.3742, allocations: 442 kB / 410.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.011e-05/0.3743, allocations: 84.27 kB / 410.6 MB, free: 6.449 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.016e-05/0.3744, allocations: 63 kB / 410.7 MB, free: 6.406 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.3745, allocations: 320.2 kB / 411 MB, free: 6.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.3747, allocations: 68.42 kB / 411 MB, free: 6.059 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.3749, allocations: 148.6 kB / 411.2 MB, free: 5.926 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003555/0.3752, allocations: 220.9 kB / 411.4 MB, free: 5.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.3752, allocations: 1.156 kB / 411.4 MB, free: 5.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006451/0.3759, allocations: 407.1 kB / 411.8 MB, free: 5.555 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.032e-05/0.3759, allocations: 10.23 kB / 411.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.529e-05/0.376, allocations: 20.03 kB / 411.8 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000398/0.3764, allocations: 133.6 kB / 412 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001707/0.3766, allocations: 41.44 kB / 412 MB, free: 5.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000679/0.3772, allocations: 0.7088 MB / 412.7 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002984/0.3776, allocations: 27.66 kB / 412.7 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.413e-05/0.3776, allocations: 12.5 kB / 412.7 MB, free: 4.852 MB / 334.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.000251/0.3779, allocations: 197.7 kB / 412.9 MB, free: 4.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001214/0.378, allocations: 102.5 kB / 413 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007928/0.3788, allocations: 411 kB / 413.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.3788, allocations: 2.469 kB / 413.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.3788, allocations: 0 / 413.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.3788, allocations: 4 kB / 413.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000634/0.3795, allocations: 0.5049 MB / 413.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.292e-05/0.3795, allocations: 15.14 kB / 414 MB, free: 3.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001194/0.3796, allocations: 24.67 kB / 414 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002768/0.3799, allocations: 141.6 kB / 414.1 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.278e-05/0.38, allocations: 21.19 kB / 414.1 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006115/0.3806, allocations: 0.6906 MB / 414.8 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3806, allocations: 0 / 414.8 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006061/0.3812, allocations: 461.8 kB / 415.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002175/0.3814, allocations: 174.6 kB / 415.5 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.317e-05/0.3815, allocations: 5.922 kB / 415.5 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002114/0.3817, allocations: 6.25 kB / 415.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.211e-05/0.3818, allocations: 17.27 kB / 415.5 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.255e-05/0.3818, allocations: 11.38 kB / 415.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006849/0.3825, allocations: 0.5376 MB / 416 MB, free: 2.5 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3825, allocations: 0 / 416 MB, free: 2.5 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007326/0.3833, allocations: 194.4 kB / 416.2 MB, free: 2.469 MB / 334.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.0007171/0.384, allocations: 306 kB / 416.5 MB, free: 2.281 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000759/0.3848, allocations: 284.5 kB / 416.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3848, allocations: 1.062 kB / 416.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003447/0.3851, allocations: 179.6 kB / 417 MB, free: 2.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006898/0.3858, allocations: 137.7 kB / 417.1 MB, free: 1.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.3877, allocations: 1.214 MB / 418.3 MB, free: 1.203 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005244/0.3882, allocations: 0.9348 MB / 419.3 MB, free: 408 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002766/0.3885, allocations: 110 kB / 419.4 MB, free: 344 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.507e-05/0.3886, allocations: 54.42 kB / 419.4 MB, free: 332 kB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3886, allocations: 3.938 kB / 419.4 MB, free: 328 kB / 334.1 MB Notification: Performance of Templates: time 0.01846/0.4071, allocations: 9.093 MB / 428.5 MB, free: 8.176 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches