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.001006/0.001006, allocations: 107.2 kB / 16.92 MB, free: 6.152 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.001002/0.001002, allocations: 187.3 kB / 17.85 MB, free: 5.305 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.288/1.288, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009925/0.0009925, allocations: 46.23 kB / 300.6 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08189/0.0829, allocations: 49.45 MB / 350.1 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005702/0.08863, allocations: 5.274 MB / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009818/0.09848, allocations: 9.072 MB / 364.4 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006365/0.09914, allocations: 23.81 kB / 364.4 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009951/0.1001, allocations: 377.6 kB / 364.8 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002198/0.1024, allocations: 0.8418 MB / 365.6 MB, free: 4.777 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001515/0.1039, allocations: 0.587 MB / 366.2 MB, free: 4.188 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002393/0.1063, allocations: 1.681 MB / 367.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002686/0.1066, allocations: 163 kB / 368.1 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003224/0.1069, allocations: 306.5 kB / 368.4 MB, free: 2.023 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003326/0.1073, allocations: 322 kB / 368.7 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.406e-05/0.1074, allocations: 28 kB / 368.7 MB, free: 1.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001223/0.1086, allocations: 0.64 MB / 369.3 MB, free: 1.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.55e-05/0.1087, allocations: 107.3 kB / 369.4 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003042/0.109, allocations: 401.5 kB / 369.8 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1607/0.2697, allocations: 1.192 MB / 371 MB, free: 14.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2698, allocations: 0 / 371 MB, free: 14.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2698, allocations: 0.5625 kB / 371 MB, free: 14.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.205e-05/0.2698, allocations: 1 kB / 371 MB, free: 14.33 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.001665/0.2715, allocations: 1.276 MB / 372.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2715, allocations: 13.17 kB / 372.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.2716, allocations: 114.3 kB / 372.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.2727, allocations: 0.8475 MB / 373.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.2727, allocations: 21.2 kB / 373.3 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.301e-05/0.2728, allocations: 28 kB / 373.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004823/0.2733, allocations: 307.3 kB / 373.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/0.2733, allocations: 0 / 373.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.973e-05/0.2733, allocations: 10.59 kB / 373.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.431e-05/0.2734, allocations: 6.984 kB / 373.6 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003923/0.2738, allocations: 240.3 kB / 373.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.2754, allocations: 1.18 MB / 375.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.2757, allocations: 206.6 kB / 375.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002828/0.276, allocations: 224.1 kB / 375.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006715/0.2827, allocations: 8.565 MB / 384 MB, free: 5.281 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.2828, allocations: 36.17 kB / 384.1 MB, free: 5.242 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.234e-06/0.2828, allocations: 0 / 384.1 MB, free: 5.242 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001544/0.2843, allocations: 0.6548 MB / 384.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.2844, allocations: 84.69 kB / 384.8 MB, free: 4.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008649/0.2852, allocations: 0.7977 MB / 385.6 MB, free: 4.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/0.2853, allocations: 27.86 kB / 385.6 MB, free: 4.758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002596/0.2855, allocations: 446.8 kB / 386.1 MB, free: 4.555 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.406e-05/0.2856, allocations: 73.5 kB / 386.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.344e-05/0.2857, allocations: 56.41 kB / 386.2 MB, free: 4.469 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.801e-05/0.2857, allocations: 319.8 kB / 386.5 MB, free: 4.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001392/0.2859, allocations: 68 kB / 386.6 MB, free: 4.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.286, allocations: 153.2 kB / 386.7 MB, free: 4.016 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.2864, allocations: 230.6 kB / 387 MB, free: 3.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.2864, allocations: 6 kB / 387 MB, free: 3.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005581/0.2869, allocations: 418.2 kB / 387.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.287, allocations: 8.438 kB / 387.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.702e-05/0.287, allocations: 14.38 kB / 387.4 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003488/0.2873, allocations: 143.2 kB / 387.5 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001677/0.2875, allocations: 37.67 kB / 387.6 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004794/0.288, allocations: 0.7001 MB / 388.3 MB, free: 3.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.2883, allocations: 37.28 kB / 388.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.574e-05/0.2883, allocations: 14.16 kB / 388.3 MB, free: 3.027 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.000195/0.2885, allocations: 193.3 kB / 388.5 MB, free: 2.867 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.2887, allocations: 102.5 kB / 388.6 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007391/0.2894, allocations: 420.1 kB / 389 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-06/0.2894, allocations: 6.125 kB / 389 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2894, allocations: 0 / 389 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.2894, allocations: 1.156 kB / 389 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005113/0.2899, allocations: 0.501 MB / 389.5 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.208e-05/0.29, allocations: 12.25 kB / 389.5 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001238/0.2901, allocations: 16.56 kB / 389.6 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002656/0.2904, allocations: 135.5 kB / 389.7 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.2904, allocations: 9.688 kB / 389.7 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004584/0.2909, allocations: 0.709 MB / 390.4 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2909, allocations: 4.062 kB / 390.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005193/0.2914, allocations: 454.4 kB / 390.9 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001475/0.2916, allocations: 173.5 kB / 391 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.733e-05/0.2917, allocations: 3.219 kB / 391 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000215/0.2919, allocations: 8.078 kB / 391 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.419e-05/0.2919, allocations: 17.06 kB / 391.1 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.292, allocations: 12.78 kB / 391.1 MB, free: 1.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005359/0.2925, allocations: 0.5421 MB / 391.6 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.2925, allocations: 0 / 391.6 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000589/0.2931, allocations: 196.2 kB / 391.8 MB, free: 0.9609 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.000467/0.2936, allocations: 296.7 kB / 392.1 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005344/0.2941, allocations: 290.3 kB / 392.4 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2941, allocations: 0 / 392.4 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002717/0.2944, allocations: 183.3 kB / 392.6 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007628/0.2952, allocations: 164.3 kB / 392.7 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.2968, allocations: 1.236 MB / 394 MB, free: 15.88 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004327/0.2973, allocations: 0.9394 MB / 394.9 MB, free: 15.17 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003574/0.2976, allocations: 111.9 kB / 395 MB, free: 15.14 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.182e-05/0.2977, allocations: 49.91 kB / 395 MB, free: 15.13 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2977, allocations: 0 / 395 MB, free: 15.13 MB / 318.1 MB Notification: Performance of Templates: time 0.01636/0.3141, allocations: 9.066 MB / 404.1 MB, free: 10.68 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