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.001178/0.001177, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.001027/0.001027, allocations: 192 kB / 18.62 MB, free: 4.41 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.29/1.29, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009942/0.0009943, allocations: 46.91 kB / 302 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09663/0.09764, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005656/0.1033, allocations: 5.281 MB / 356.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009598/0.113, allocations: 9.068 MB / 365.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005583/0.1136, allocations: 35.69 kB / 365.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008937/0.1145, allocations: 389.5 kB / 366.3 MB, free: 4.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002181/0.1167, allocations: 0.8379 MB / 367.1 MB, free: 4.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001517/0.1182, allocations: 0.587 MB / 367.7 MB, free: 3.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00242/0.1206, allocations: 1.693 MB / 369.4 MB, free: 1.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.1209, allocations: 155.1 kB / 369.5 MB, free: 1.562 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003585/0.1213, allocations: 310.5 kB / 369.8 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003491/0.1217, allocations: 326 kB / 370.1 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.095e-05/0.1217, allocations: 28 kB / 370.2 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001289/0.123, allocations: 0.6477 MB / 370.8 MB, free: 268 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.303e-05/0.1231, allocations: 99.33 kB / 370.9 MB, free: 168 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1435/0.2666, allocations: 403.3 kB / 371.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001788/0.2685, allocations: 1.2 MB / 372.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2685, allocations: 0 / 372.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2685, allocations: 1.938 kB / 372.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.2685, allocations: 0 / 372.5 MB, free: 12.38 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.001618/0.2701, allocations: 1.275 MB / 373.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.2702, allocations: 10.27 kB / 373.8 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.2703, allocations: 112.5 kB / 373.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.2714, allocations: 0.8502 MB / 374.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.2714, allocations: 16.81 kB / 374.8 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.883e-05/0.2715, allocations: 28.59 kB / 374.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004812/0.272, allocations: 309.8 kB / 375.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.272, allocations: 0 / 375.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.272, allocations: 14.47 kB / 375.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.272, allocations: 9.688 kB / 375.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003712/0.2724, allocations: 237 kB / 375.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.2739, allocations: 1.184 MB / 376.5 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003119/0.2742, allocations: 207 kB / 376.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002828/0.2745, allocations: 220.7 kB / 377 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006712/0.2812, allocations: 8.567 MB / 385.5 MB, free: 3.348 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.977e-05/0.2813, allocations: 32.52 kB / 385.6 MB, free: 3.309 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.573e-06/0.2813, allocations: 1.5 kB / 385.6 MB, free: 3.309 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001389/0.2827, allocations: 0.6543 MB / 386.2 MB, free: 3.102 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.2827, allocations: 84.05 kB / 386.3 MB, free: 3.004 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007747/0.2835, allocations: 0.7951 MB / 387.1 MB, free: 2.859 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.2835, allocations: 29.92 kB / 387.1 MB, free: 2.828 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000242/0.2838, allocations: 444.8 kB / 387.6 MB, free: 2.527 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.11e-05/0.2838, allocations: 77.64 kB / 387.6 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.934e-05/0.2839, allocations: 56.25 kB / 387.7 MB, free: 2.438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.611e-05/0.2839, allocations: 315.2 kB / 388 MB, free: 2.129 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.2841, allocations: 71.39 kB / 388.1 MB, free: 2.105 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001579/0.2843, allocations: 156.7 kB / 388.2 MB, free: 1.984 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002785/0.2845, allocations: 231.3 kB / 388.4 MB, free: 1.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2846, allocations: 9.094 kB / 388.5 MB, free: 1.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005274/0.2851, allocations: 408 kB / 388.9 MB, free: 1.652 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.2851, allocations: 6.75 kB / 388.9 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/0.2851, allocations: 14.22 kB / 388.9 MB, free: 1.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003298/0.2855, allocations: 143.9 kB / 389 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001515/0.2856, allocations: 36.14 kB / 389.1 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004711/0.2861, allocations: 0.7053 MB / 389.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.2864, allocations: 36.88 kB / 389.8 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.219e-05/0.2864, allocations: 15.44 kB / 389.8 MB, free: 0.9961 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.0001802/0.2866, allocations: 194 kB / 390 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.2867, allocations: 102.8 kB / 390.1 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006616/0.2874, allocations: 406.6 kB / 390.5 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.2874, allocations: 6.406 kB / 390.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2874, allocations: 1.125 kB / 390.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.2874, allocations: 3.938 kB / 390.5 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005165/0.2879, allocations: 0.5079 MB / 391 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.968e-05/0.288, allocations: 12.66 kB / 391 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.2881, allocations: 21.5 kB / 391 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002473/0.2884, allocations: 136.6 kB / 391.2 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.905e-05/0.2884, allocations: 5.891 kB / 391.2 MB, free: 240 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005206/0.2889, allocations: 0.7073 MB / 391.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.2889, allocations: 5.703 kB / 391.9 MB, free: 15.63 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005648/0.2895, allocations: 458.6 kB / 392.3 MB, free: 15.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/0.2897, allocations: 170 kB / 392.5 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.395e-05/0.2898, allocations: 7.656 kB / 392.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.29, allocations: 7.141 kB / 392.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.696e-05/0.2901, allocations: 13.3 kB / 392.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.2901, allocations: 14.06 kB / 392.6 MB, free: 15.2 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005991/0.2907, allocations: 0.5424 MB / 393.1 MB, free: 14.96 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2907, allocations: 0 / 393.1 MB, free: 14.96 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005834/0.2913, allocations: 193 kB / 393.3 MB, free: 14.93 MB / 318.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.000463/0.2918, allocations: 295.9 kB / 393.6 MB, free: 14.81 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005392/0.2923, allocations: 288.8 kB / 393.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2923, allocations: 2.406 kB / 393.9 MB, free: 14.68 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002684/0.2926, allocations: 179.4 kB / 394 MB, free: 14.59 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007129/0.2933, allocations: 164.4 kB / 394.2 MB, free: 14.51 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001661/0.295, allocations: 1.207 MB / 395.4 MB, free: 13.87 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00042/0.2954, allocations: 0.934 MB / 396.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002506/0.2957, allocations: 112.4 kB / 396.4 MB, free: 13.13 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.941e-05/0.2958, allocations: 49.81 kB / 396.5 MB, free: 13.12 MB / 318.1 MB Notification: Performance of SimCode: time 8.61e-07/0.2958, allocations: 0 / 396.5 MB, free: 13.12 MB / 318.1 MB Notification: Performance of Templates: time 0.01517/0.311, allocations: 9.063 MB / 405.6 MB, free: 8.801 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/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