Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001364/0.001364, allocations: 112.7 kB / 17.98 MB, free: 4.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001358/0.001358, allocations: 205.8 kB / 18.92 MB, free: 4.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 247.1 MB, free: 8.934 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001944/0.001944, allocations: 67.97 kB / 307.1 MB, free: 0.6602 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.1466, allocations: 50.54 MB / 357.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.008617/0.1553, allocations: 5.315 MB / 363 MB, free: 8.781 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2005/0.3559, allocations: 9.049 MB / 372 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000869/0.3568, allocations: 21.72 kB / 372.1 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001472/0.3583, allocations: 338.3 kB / 372.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003526/0.3619, allocations: 0.7205 MB / 373.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002378/0.3643, allocations: 0.515 MB / 373.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0037/0.368, allocations: 1.719 MB / 375.3 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00047/0.3685, allocations: 167.9 kB / 375.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007113/0.3692, allocations: 309.3 kB / 375.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004597/0.3697, allocations: 317.5 kB / 376.1 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.3698, allocations: 34.25 kB / 376.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002155/0.372, allocations: 0.6705 MB / 376.8 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.137e-05/0.3721, allocations: 104.9 kB / 376.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004679/0.3726, allocations: 406.3 kB / 377.3 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001296/0.3739, allocations: 0.8805 MB / 378.2 MB, free: 8.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3739, allocations: 0 / 378.2 MB, free: 8.234 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3739, allocations: 0 / 378.2 MB, free: 8.234 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.3739, allocations: 9.438 kB / 378.2 MB, free: 8.227 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.002093/0.376, allocations: 1.274 MB / 379.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.3761, allocations: 10.25 kB / 379.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003402/0.3764, allocations: 123.6 kB / 379.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001333/0.3778, allocations: 0.8501 MB / 380.5 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.3778, allocations: 17.34 kB / 380.5 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.179e-05/0.3779, allocations: 31.44 kB / 380.5 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006635/0.3785, allocations: 310.1 kB / 380.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.3786, allocations: 1.594 kB / 380.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.003e-05/0.3786, allocations: 9.062 kB / 380.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.506e-05/0.3786, allocations: 11.94 kB / 380.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004485/0.3791, allocations: 237.1 kB / 381.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00195/0.381, allocations: 1.192 MB / 382.3 MB, free: 6.145 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003895/0.3815, allocations: 198.8 kB / 382.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000324/0.3818, allocations: 220.5 kB / 382.7 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009511/0.3914, allocations: 8.883 MB / 391.6 MB, free: 13.78 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.665e-05/0.3914, allocations: 32.06 kB / 391.6 MB, free: 13.74 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 2.214e-06/0.3914, allocations: 0 / 391.6 MB, free: 13.74 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001944/0.3934, allocations: 0.6595 MB / 392.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.767e-05/0.3935, allocations: 79.61 kB / 392.3 MB, free: 13.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.3947, allocations: 0.7948 MB / 393.1 MB, free: 13.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.3948, allocations: 31.17 kB / 393.2 MB, free: 12.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004281/0.3952, allocations: 447.6 kB / 393.6 MB, free: 12.62 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.376e-05/0.3953, allocations: 75.86 kB / 393.7 MB, free: 12.56 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001385/0.3954, allocations: 63.38 kB / 393.7 MB, free: 12.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3956, allocations: 322.5 kB / 394 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001705/0.3958, allocations: 66.75 kB / 394.1 MB, free: 12.19 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002408/0.396, allocations: 150.1 kB / 394.3 MB, free: 12.06 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004297/0.3965, allocations: 236.5 kB / 394.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.3965, allocations: 5 kB / 394.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008724/0.3974, allocations: 405.1 kB / 394.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.3974, allocations: 5.688 kB / 394.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.055e-05/0.3974, allocations: 13.44 kB / 394.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004787/0.3979, allocations: 139.7 kB / 395 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002032/0.3981, allocations: 37.23 kB / 395.1 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008175/0.399, allocations: 0.7022 MB / 395.8 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004187/0.3994, allocations: 34.25 kB / 395.8 MB, free: 11.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-05/0.3995, allocations: 13.89 kB / 395.8 MB, free: 11.06 MB / 318.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.0003456/0.3998, allocations: 194.1 kB / 396 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.4, allocations: 111.1 kB / 396.1 MB, free: 10.84 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00097/0.4009, allocations: 404.3 kB / 396.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.401, allocations: 8.531 kB / 396.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.401, allocations: 0 / 396.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/0.401, allocations: 5.094 kB / 396.5 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009072/0.4019, allocations: 0.5088 MB / 397 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-05/0.402, allocations: 14.56 kB / 397.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001601/0.4021, allocations: 15.92 kB / 397.1 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000329/0.4025, allocations: 139.5 kB / 397.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.4025, allocations: 8.656 kB / 397.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007911/0.4033, allocations: 0.7093 MB / 397.9 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4033, allocations: 1.062 kB / 397.9 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000758/0.4041, allocations: 461.1 kB / 398.4 MB, free: 9.387 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003104/0.4044, allocations: 175.3 kB / 398.5 MB, free: 9.223 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001329/0.4046, allocations: 5.375 kB / 398.5 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002434/0.4048, allocations: 2.75 kB / 398.6 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.357e-05/0.4049, allocations: 16.23 kB / 398.6 MB, free: 9.211 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/0.405, allocations: 8.25 kB / 398.6 MB, free: 9.211 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008537/0.4058, allocations: 0.5417 MB / 399.1 MB, free: 8.891 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4058, allocations: 0 / 399.1 MB, free: 8.891 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009702/0.4068, allocations: 194 kB / 399.3 MB, free: 8.859 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.0006502/0.4075, allocations: 315.8 kB / 399.6 MB, free: 8.707 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008145/0.4083, allocations: 274 kB / 399.9 MB, free: 8.559 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/0.4083, allocations: 3.938 kB / 399.9 MB, free: 8.555 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003479/0.4087, allocations: 179.5 kB / 400.1 MB, free: 8.441 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009519/0.4096, allocations: 169.7 kB / 400.2 MB, free: 8.344 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002677/0.4124, allocations: 1.494 MB / 401.7 MB, free: 7.348 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007139/0.4131, allocations: 0.9388 MB / 402.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001595/0.4133, allocations: 56.09 kB / 402.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4133, allocations: 0 / 402.7 MB, free: 6.527 MB / 318.1 MB Notification: Performance of Templates: time 0.02704/0.4403, allocations: 14.37 MB / 417.1 MB, free: 9.973 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches