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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 184.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000992/0.0009922, allocations: 101.6 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 35.94 kB / 350 MB, free: 88 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2145, allocations: 49.44 MB / 399.5 MB, free: 33.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00415/0.2187, allocations: 5.294 MB / 404.8 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006877/0.2256, allocations: 9.22 MB / 414 MB, free: 18.82 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004148/0.2261, allocations: 23.81 kB / 414 MB, free: 18.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007208/0.2268, allocations: 350.1 kB / 414.3 MB, free: 18.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001606/0.2284, allocations: 0.6872 MB / 415 MB, free: 17.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009811/0.2294, allocations: 489.8 kB / 415.5 MB, free: 17.28 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001691/0.2311, allocations: 1.65 MB / 417.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002328/0.2314, allocations: 151.6 kB / 417.3 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003917/0.2318, allocations: 294.4 kB / 417.6 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002571/0.232, allocations: 317.9 kB / 417.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.937e-05/0.2321, allocations: 20 kB / 417.9 MB, free: 14.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.2332, allocations: 0.6437 MB / 418.6 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.856e-05/0.2333, allocations: 99.3 kB / 418.7 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000247/0.2336, allocations: 393.5 kB / 419.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009891/0.2346, allocations: 1.172 MB / 420.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2346, allocations: 0 / 420.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.2346, allocations: 0 / 420.2 MB, free: 12.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.2346, allocations: 0 / 420.2 MB, free: 12.53 MB / 298.7 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.001456/0.236, allocations: 1.271 MB / 421.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.2361, allocations: 8.031 kB / 421.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.298e-05/0.2362, allocations: 115.6 kB / 421.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008774/0.2371, allocations: 0.8559 MB / 422.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.2371, allocations: 20.5 kB / 422.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.205e-05/0.2371, allocations: 24 kB / 422.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003763/0.2375, allocations: 311.7 kB / 422.8 MB, free: 9.816 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.2375, allocations: 0 / 422.8 MB, free: 9.816 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.456e-05/0.2376, allocations: 12 kB / 422.8 MB, free: 9.805 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.2376, allocations: 11.98 kB / 422.8 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003187/0.2379, allocations: 234.1 kB / 423.1 MB, free: 9.566 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001307/0.2392, allocations: 1.19 MB / 424.3 MB, free: 8.305 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.2395, allocations: 198.6 kB / 424.5 MB, free: 8.102 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002554/0.2398, allocations: 223.8 kB / 424.7 MB, free: 7.879 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006322/0.2461, allocations: 8.565 MB / 433.2 MB, free: 13.92 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.2462, allocations: 34.56 kB / 433.3 MB, free: 13.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.375e-06/0.2462, allocations: 3.938 kB / 433.3 MB, free: 13.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.001701/0.2479, allocations: 0.6604 MB / 433.9 MB, free: 13.18 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.248, allocations: 85.09 kB / 434 MB, free: 13.08 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009206/0.2489, allocations: 0.7987 MB / 434.8 MB, free: 12.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.2489, allocations: 29.7 kB / 434.8 MB, free: 12.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003349/0.2493, allocations: 440.7 kB / 435.3 MB, free: 11.8 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.333e-05/0.2493, allocations: 74.84 kB / 435.4 MB, free: 11.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.206e-05/0.2494, allocations: 53.94 kB / 435.4 MB, free: 11.66 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.2495, allocations: 329.9 kB / 435.7 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001325/0.2497, allocations: 64.2 kB / 435.8 MB, free: 11.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001724/0.2499, allocations: 137.9 kB / 435.9 MB, free: 11.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003268/0.2502, allocations: 247.2 kB / 436.2 MB, free: 10.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2502, allocations: 0 / 436.2 MB, free: 10.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005822/0.2508, allocations: 400.9 kB / 436.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.2508, allocations: 7.984 kB / 436.6 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.312e-05/0.2509, allocations: 24.28 kB / 436.6 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003705/0.2512, allocations: 133.9 kB / 436.7 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001635/0.2514, allocations: 39.84 kB / 436.8 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006204/0.252, allocations: 0.7148 MB / 437.5 MB, free: 9.492 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002286/0.2523, allocations: 23.75 kB / 437.5 MB, free: 9.469 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.24e-05/0.2523, allocations: 12 kB / 437.5 MB, free: 9.457 MB / 314.7 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.0002249/0.2526, allocations: 201.4 kB / 437.7 MB, free: 9.254 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.2527, allocations: 102.8 kB / 437.8 MB, free: 9.152 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007768/0.2534, allocations: 423 kB / 438.2 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.2535, allocations: 4 kB / 438.2 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.2535, allocations: 0 / 438.2 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.2535, allocations: 0 / 438.2 MB, free: 8.727 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000549/0.254, allocations: 0.5112 MB / 438.7 MB, free: 8.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.981e-05/0.2541, allocations: 15.98 kB / 438.7 MB, free: 8.152 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000115/0.2542, allocations: 19.98 kB / 438.8 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002543/0.2545, allocations: 132.8 kB / 438.9 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.151e-05/0.2545, allocations: 15.94 kB / 438.9 MB, free: 7.984 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005427/0.255, allocations: 0.7006 MB / 439.6 MB, free: 7.258 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.255, allocations: 3.984 kB / 439.6 MB, free: 7.254 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001036/0.2561, allocations: 1.266 MB / 440.9 MB, free: 5.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002077/0.2563, allocations: 176 kB / 441.1 MB, free: 5.738 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.419e-05/0.2564, allocations: 7.938 kB / 441.1 MB, free: 5.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.2566, allocations: 4 kB / 441.1 MB, free: 5.727 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.2567, allocations: 15.98 kB / 441.1 MB, free: 5.711 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.2567, allocations: 8 kB / 441.1 MB, free: 5.703 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005633/0.2573, allocations: 0.5461 MB / 441.6 MB, free: 5.148 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2573, allocations: 0 / 441.6 MB, free: 5.148 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006153/0.2579, allocations: 187.8 kB / 441.8 MB, free: 4.965 MB / 314.7 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.0004745/0.2584, allocations: 295.4 kB / 442.1 MB, free: 4.664 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005289/0.2589, allocations: 279.1 kB / 442.4 MB, free: 4.379 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2589, allocations: 0 / 442.4 MB, free: 4.379 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002799/0.2592, allocations: 179.8 kB / 442.6 MB, free: 4.191 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007756/0.26, allocations: 152.8 kB / 442.7 MB, free: 4.043 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.262, allocations: 1.635 MB / 444.3 MB, free: 2.363 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004087/0.2624, allocations: 0.9416 MB / 445.3 MB, free: 1.395 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003428/0.2627, allocations: 114.7 kB / 445.4 MB, free: 1.277 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.881e-05/0.2628, allocations: 51.42 kB / 445.4 MB, free: 1.227 MB / 314.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2628, allocations: 3.938 kB / 445.4 MB, free: 1.223 MB / 314.7 MB Notification: Performance of Templates: time 0.0169/0.2797, allocations: 8.918 MB / 454.4 MB, free: 8.383 MB / 330.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches