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.001533/0.001533, allocations: 105.2 kB / 16.51 MB, free: 6.707 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.001759/0.001759, allocations: 192.1 kB / 17.43 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.321/1.321, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001033/0.001033, allocations: 43.62 kB / 299.9 MB, free: 6.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08001/0.08106, allocations: 49.45 MB / 349.4 MB, free: 4.785 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005869/0.08697, allocations: 5.296 MB / 354.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009972/0.09698, allocations: 9.226 MB / 363.9 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004709/0.09748, allocations: 19.88 kB / 363.9 MB, free: 6.176 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008306/0.09832, allocations: 342.2 kB / 364.3 MB, free: 5.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001837/0.1002, allocations: 0.6949 MB / 365 MB, free: 5.141 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001098/0.1013, allocations: 470 kB / 365.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002078/0.1034, allocations: 1.654 MB / 367.1 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/0.1036, allocations: 147.6 kB / 367.2 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003201/0.104, allocations: 290.5 kB / 367.5 MB, free: 2.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003002/0.1043, allocations: 318 kB / 367.8 MB, free: 2.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.118e-05/0.1043, allocations: 20 kB / 367.8 MB, free: 2.242 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001209/0.1056, allocations: 0.6398 MB / 368.5 MB, free: 1.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.044e-05/0.1057, allocations: 91.33 kB / 368.6 MB, free: 1.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003386/0.106, allocations: 397.5 kB / 369 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1416/0.2476, allocations: 1.169 MB / 370.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2476, allocations: 1.641 kB / 370.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.2477, allocations: 2.844 kB / 370.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.945e-05/0.2477, allocations: 1.781 kB / 370.1 MB, free: 13.87 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.001759/0.2495, allocations: 1.269 MB / 371.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.2495, allocations: 11.22 kB / 371.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.2496, allocations: 115.4 kB / 371.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001034/0.2507, allocations: 0.8481 MB / 372.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.2507, allocations: 21.09 kB / 372.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.031e-05/0.2508, allocations: 32.06 kB / 372.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004883/0.2513, allocations: 307.3 kB / 372.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.2513, allocations: 1.172 kB / 372.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.2513, allocations: 10.59 kB / 372.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.272e-05/0.2513, allocations: 13.33 kB / 372.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000402/0.2517, allocations: 231.1 kB / 373 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.2533, allocations: 1.189 MB / 374.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000327/0.2537, allocations: 200 kB / 374.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/0.254, allocations: 226.7 kB / 374.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006494/0.2605, allocations: 8.56 MB / 383.1 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.751e-05/0.2605, allocations: 38.16 kB / 383.2 MB, free: 4.836 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.2605, allocations: 2.688 kB / 383.2 MB, free: 4.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001502/0.262, allocations: 0.6561 MB / 383.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.285e-05/0.2621, allocations: 80.45 kB / 383.9 MB, free: 4.535 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008367/0.2629, allocations: 0.7988 MB / 384.7 MB, free: 4.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.2629, allocations: 31.33 kB / 384.7 MB, free: 4.359 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/0.2632, allocations: 441.4 kB / 385.2 MB, free: 4.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.665e-05/0.2632, allocations: 76.98 kB / 385.2 MB, free: 4.184 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.646e-05/0.2633, allocations: 56.94 kB / 385.3 MB, free: 4.168 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.054e-05/0.2634, allocations: 320.3 kB / 385.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.2635, allocations: 70.69 kB / 385.7 MB, free: 3.859 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.2637, allocations: 146 kB / 385.8 MB, free: 3.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.264, allocations: 233.4 kB / 386.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.264, allocations: 3.938 kB / 386.1 MB, free: 3.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005599/0.2646, allocations: 408.2 kB / 386.5 MB, free: 3.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.2646, allocations: 6.844 kB / 386.5 MB, free: 3.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.892e-05/0.2646, allocations: 17.95 kB / 386.5 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003505/0.265, allocations: 145.8 kB / 386.6 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.2652, allocations: 34.28 kB / 386.7 MB, free: 3.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004968/0.2657, allocations: 0.7087 MB / 387.4 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/0.2659, allocations: 33.72 kB / 387.4 MB, free: 2.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.544e-05/0.266, allocations: 16.36 kB / 387.4 MB, free: 2.824 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.0001984/0.2662, allocations: 195.1 kB / 387.6 MB, free: 2.664 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.2663, allocations: 102.7 kB / 387.7 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007575/0.2671, allocations: 407.5 kB / 388.1 MB, free: 2.422 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.2671, allocations: 7.016 kB / 388.1 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.2671, allocations: 0 / 388.1 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.2671, allocations: 2.594 kB / 388.1 MB, free: 2.418 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000592/0.2677, allocations: 0.5003 MB / 388.6 MB, free: 2.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-05/0.2677, allocations: 18.62 kB / 388.6 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.2679, allocations: 24.12 kB / 388.7 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000272/0.2681, allocations: 127.3 kB / 388.8 MB, free: 2.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.2682, allocations: 11.98 kB / 388.8 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004558/0.2686, allocations: 0.7107 MB / 389.5 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2686, allocations: 0 / 389.5 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004932/0.2691, allocations: 457.7 kB / 389.9 MB, free: 1.199 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001449/0.2693, allocations: 173.3 kB / 390.1 MB, free: 1.043 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.426e-05/0.2694, allocations: 8.062 kB / 390.1 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.2696, allocations: 7.609 kB / 390.1 MB, free: 1.035 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.258e-05/0.2697, allocations: 20.8 kB / 390.2 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.923e-05/0.2697, allocations: 7.688 kB / 390.2 MB, free: 1.031 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000542/0.2702, allocations: 0.5427 MB / 390.7 MB, free: 0.793 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2703, allocations: 0 / 390.7 MB, free: 0.793 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005807/0.2708, allocations: 193 kB / 390.9 MB, free: 0.7617 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.0004558/0.2713, allocations: 299.3 kB / 391.2 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005266/0.2718, allocations: 281.8 kB / 391.5 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2719, allocations: 0 / 391.5 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002641/0.2721, allocations: 179.3 kB / 391.6 MB, free: 440 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000724/0.2729, allocations: 159.5 kB / 391.8 MB, free: 376 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001802/0.2747, allocations: 1.466 MB / 393.3 MB, free: 15.47 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004405/0.2751, allocations: 0.9375 MB / 394.2 MB, free: 14.76 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003719/0.2755, allocations: 107.5 kB / 394.3 MB, free: 14.73 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.11e-05/0.2756, allocations: 58.23 kB / 394.4 MB, free: 14.72 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2756, allocations: 1.125 kB / 394.4 MB, free: 14.72 MB / 318.1 MB Notification: Performance of Templates: time 0.0146/0.2902, allocations: 8.734 MB / 403.1 MB, free: 11.01 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