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.001408/0.001408, allocations: 104 kB / 17.59 MB, free: 5.559 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.00152/0.00152, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.336/1.336, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 54.08 kB / 301.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08782/0.08897, allocations: 49.44 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005763/0.09478, allocations: 5.297 MB / 356 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009787/0.1046, allocations: 9.064 MB / 365.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006052/0.1053, allocations: 19.88 kB / 365.1 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009679/0.1063, allocations: 389.5 kB / 365.5 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002295/0.1086, allocations: 0.8301 MB / 366.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001695/0.1103, allocations: 0.5909 MB / 366.9 MB, free: 4.164 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00236/0.1127, allocations: 1.685 MB / 368.6 MB, free: 2.473 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002919/0.113, allocations: 159.1 kB / 368.7 MB, free: 2.301 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003726/0.1134, allocations: 306.5 kB / 369 MB, free: 2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003377/0.1137, allocations: 322 kB / 369.4 MB, free: 1.684 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.806e-05/0.1138, allocations: 28 kB / 369.4 MB, free: 1.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001436/0.1152, allocations: 0.6477 MB / 370 MB, free: 1.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.058e-05/0.1153, allocations: 99.33 kB / 370.1 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003372/0.1157, allocations: 405.5 kB / 370.5 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1456/0.2613, allocations: 1.191 MB / 371.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.2613, allocations: 1.672 kB / 371.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2613, allocations: 0 / 371.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.753e-05/0.2614, allocations: 0 / 371.7 MB, free: 14.08 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.001809/0.2632, allocations: 1.273 MB / 373 MB, free: 13.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.809e-05/0.2632, allocations: 10 kB / 373 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001458/0.2634, allocations: 113.7 kB / 373.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.2645, allocations: 0.848 MB / 374 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.248e-05/0.2645, allocations: 20.91 kB / 374 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.48e-05/0.2646, allocations: 27.66 kB / 374 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004828/0.2651, allocations: 308.2 kB / 374.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.2651, allocations: 0 / 374.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.928e-05/0.2651, allocations: 9.812 kB / 374.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.2651, allocations: 7.266 kB / 374.3 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003959/0.2655, allocations: 239.2 kB / 374.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.2672, allocations: 1.184 MB / 375.7 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003291/0.2675, allocations: 199.8 kB / 375.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/0.2678, allocations: 231.9 kB / 376.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006874/0.2747, allocations: 8.561 MB / 384.7 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.2748, allocations: 36.36 kB / 384.8 MB, free: 4.988 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.074e-06/0.2748, allocations: 1.375 kB / 384.8 MB, free: 4.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001543/0.2763, allocations: 0.6574 MB / 385.4 MB, free: 4.777 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.2764, allocations: 79.84 kB / 385.5 MB, free: 4.684 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009301/0.2773, allocations: 0.7969 MB / 386.3 MB, free: 4.539 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.377e-05/0.2773, allocations: 34.27 kB / 386.3 MB, free: 4.508 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002533/0.2776, allocations: 444.5 kB / 386.8 MB, free: 4.312 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.777e-05/0.2777, allocations: 79.17 kB / 386.8 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.993e-05/0.2777, allocations: 55.78 kB / 386.9 MB, free: 4.223 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.017e-05/0.2778, allocations: 321.9 kB / 387.2 MB, free: 3.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.2779, allocations: 67.42 kB / 387.3 MB, free: 3.891 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000165/0.2781, allocations: 154.8 kB / 387.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003025/0.2784, allocations: 229.4 kB / 387.7 MB, free: 3.621 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.2784, allocations: 6.656 kB / 387.7 MB, free: 3.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005827/0.279, allocations: 406.2 kB / 388.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.279, allocations: 6.141 kB / 388.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.951e-05/0.2791, allocations: 18.67 kB / 388.1 MB, free: 3.434 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003372/0.2794, allocations: 135.8 kB / 388.2 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001698/0.2796, allocations: 39.94 kB / 388.3 MB, free: 3.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004808/0.2801, allocations: 0.7073 MB / 389 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003212/0.2804, allocations: 31.38 kB / 389 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.424e-05/0.2805, allocations: 12.12 kB / 389 MB, free: 2.785 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.0002084/0.2807, allocations: 198 kB / 389.2 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.2808, allocations: 105.6 kB / 389.3 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007754/0.2816, allocations: 405.3 kB / 389.7 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.2816, allocations: 8.766 kB / 389.7 MB, free: 2.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2816, allocations: 4 kB / 389.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.2816, allocations: 3.891 kB / 389.7 MB, free: 2.371 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005678/0.2822, allocations: 0.5009 MB / 390.2 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.278e-05/0.2822, allocations: 11.06 kB / 390.2 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/0.2823, allocations: 19.94 kB / 390.2 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002751/0.2826, allocations: 133.4 kB / 390.4 MB, free: 2.027 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.16e-05/0.2827, allocations: 13.95 kB / 390.4 MB, free: 2.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004513/0.2831, allocations: 0.7029 MB / 391.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.2831, allocations: 2.922 kB / 391.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005303/0.2837, allocations: 459.2 kB / 391.5 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000183/0.2839, allocations: 172.9 kB / 391.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.565e-05/0.284, allocations: 4.609 kB / 391.7 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000217/0.2842, allocations: 7.297 kB / 391.7 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.031e-05/0.2842, allocations: 13.67 kB / 391.7 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/0.2843, allocations: 12.38 kB / 391.7 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005932/0.2849, allocations: 0.5372 MB / 392.3 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2849, allocations: 1.125 kB / 392.3 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006645/0.2855, allocations: 200.8 kB / 392.5 MB, free: 0.7188 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.0004973/0.2861, allocations: 298.2 kB / 392.8 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005778/0.2866, allocations: 286.3 kB / 393.1 MB, free: 484 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2867, allocations: 0 / 393.1 MB, free: 484 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002794/0.2869, allocations: 184.9 kB / 393.2 MB, free: 380 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008323/0.2878, allocations: 164.6 kB / 393.4 MB, free: 312 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001868/0.2897, allocations: 1.267 MB / 394.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004722/0.2902, allocations: 0.9394 MB / 395.6 MB, free: 14.9 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.521e-05/0.2903, allocations: 54.42 kB / 395.7 MB, free: 14.89 MB / 318.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2903, allocations: 3.469 kB / 395.7 MB, free: 14.89 MB / 318.1 MB Notification: Performance of Templates: time 0.0193/0.3096, allocations: 14.34 MB / 410 MB, free: 5.164 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/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