Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance") translateModel(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000986/0.000986, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 226.6 MB / 244.3 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007434/0.0007433, allocations: 99.95 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002134/0.0002135, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2243, allocations: 51.28 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance): time 0.002524/0.2269, allocations: 3.139 MB / 410.6 MB, free: 24.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001476/0.2284, allocations: 1.356 MB / 412 MB, free: 23.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001367/0.2285, allocations: 12 kB / 412 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003059/0.2288, allocations: 132.1 kB / 412.1 MB, free: 23.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006122/0.2294, allocations: 310.5 kB / 412.4 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006272/0.2301, allocations: 454.5 kB / 412.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002674/0.2304, allocations: 426 kB / 413.3 MB, free: 22.05 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009269/0.2313, allocations: 0.7069 MB / 414 MB, free: 21.31 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.2315, allocations: 179.3 kB / 414.2 MB, free: 21.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001815/0.2317, allocations: 223.1 kB / 414.4 MB, free: 20.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.693e-05/0.2317, allocations: 20 kB / 414.4 MB, free: 20.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002644/0.232, allocations: 187.8 kB / 414.6 MB, free: 20.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.383e-05/0.2321, allocations: 75.62 kB / 414.7 MB, free: 20.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.206e-05/0.2321, allocations: 97.45 kB / 414.8 MB, free: 20.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003577/0.2325, allocations: 0.519 MB / 415.3 MB, free: 20.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2325, allocations: 4 kB / 415.3 MB, free: 20.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2325, allocations: 4 kB / 415.3 MB, free: 20.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.2325, allocations: 0 / 415.3 MB, free: 20.01 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.001605/0.2341, allocations: 0.8332 MB / 416.1 MB, free: 19.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.2342, allocations: 12.02 kB / 416.1 MB, free: 19.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003122/0.2373, allocations: 498.9 kB / 416.6 MB, free: 18.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.2376, allocations: 306.3 kB / 416.9 MB, free: 18.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.2376, allocations: 45.25 kB / 417 MB, free: 18.25 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/0.2377, allocations: 56 kB / 417 MB, free: 18.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007855/0.2385, allocations: 0.5257 MB / 417.5 MB, free: 17.66 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.2385, allocations: 4 kB / 417.6 MB, free: 17.65 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.767e-05/0.2386, allocations: 20 kB / 417.6 MB, free: 17.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.2386, allocations: 16 kB / 417.6 MB, free: 17.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008205/0.2394, allocations: 0.579 MB / 418.2 MB, free: 17.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002273/0.2417, allocations: 1.95 MB / 420.1 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001384/0.2431, allocations: 2.181 MB / 422.3 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003551/0.2435, allocations: 258.1 kB / 422.5 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.991e-05/0.2436, allocations: 174.6 kB / 422.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.862e-05/0.2436, allocations: 39 kB / 422.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=47): time 1.904e-06/0.2436, allocations: 4 kB / 422.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=47): time 0.00146/0.2451, allocations: 0.7504 MB / 423.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.451e-05/0.2451, allocations: 59.78 kB / 423.6 MB, free: 11.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.2452, allocations: 187.1 kB / 423.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.2453, allocations: 37.64 kB / 423.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.011e-05/0.2453, allocations: 216.5 kB / 424 MB, free: 10.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.319e-05/0.2454, allocations: 157.7 kB / 424.2 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.012e-05/0.2455, allocations: 12 kB / 424.2 MB, free: 10.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.604e-05/0.2455, allocations: 330.8 kB / 424.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.2458, allocations: 161 kB / 424.6 MB, free: 9.93 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002727/0.246, allocations: 242.6 kB / 424.9 MB, free: 9.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002778/0.2463, allocations: 188.7 kB / 425.1 MB, free: 9.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2463, allocations: 0 / 425.1 MB, free: 9.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0007917/0.2471, allocations: 0.5396 MB / 425.6 MB, free: 8.934 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/0.2472, allocations: 4 kB / 425.6 MB, free: 8.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.2472, allocations: 4 kB / 425.6 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002963/0.2475, allocations: 84.78 kB / 425.7 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003336/0.2478, allocations: 103.8 kB / 425.8 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001185/0.249, allocations: 1.64 MB / 427.4 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002304/0.2493, allocations: 51.52 kB / 427.5 MB, free: 6.914 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.742e-05/0.2493, allocations: 20 kB / 427.5 MB, free: 6.895 MB / 298.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 (52): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001393/0.2494, allocations: 165.8 kB / 427.7 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.715e-05/0.2495, allocations: 23.72 kB / 427.7 MB, free: 6.699 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008918/0.2504, allocations: 0.5511 MB / 428.2 MB, free: 6.141 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2504, allocations: 8 kB / 428.3 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-06/0.2504, allocations: 0 / 428.3 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.2504, allocations: 7.984 kB / 428.3 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.2517, allocations: 1.157 MB / 429.4 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.2517, allocations: 0 / 429.4 MB, free: 4.898 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000302/0.252, allocations: 83.89 kB / 429.5 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002242/0.2523, allocations: 80.86 kB / 429.6 MB, free: 4.734 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.414e-05/0.2523, allocations: 15.95 kB / 429.6 MB, free: 4.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00106/0.2534, allocations: 1.636 MB / 431.2 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2534, allocations: 3.938 kB / 431.2 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00103/0.2544, allocations: 0.8219 MB / 432.1 MB, free: 2.102 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.84e-05/0.2545, allocations: 104.7 kB / 432.2 MB, free: 1.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.2545, allocations: 15.98 kB / 432.2 MB, free: 1.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.2547, allocations: 16 kB / 432.2 MB, free: 1.949 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.669e-05/0.2548, allocations: 40.33 kB / 432.2 MB, free: 1.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.2548, allocations: 15.94 kB / 432.2 MB, free: 1.895 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.993e-05/0.2549, allocations: 140.3 kB / 432.4 MB, free: 1.758 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2549, allocations: 4 kB / 432.4 MB, free: 1.754 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003852/0.2553, allocations: 147.6 kB / 432.5 MB, free: 1.609 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (currentSource.pin_p.reference.gamma) * 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 (44): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001898/0.2555, allocations: 147.2 kB / 432.7 MB, free: 1.457 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008166/0.2563, allocations: 0.5737 MB / 433.2 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2563, allocations: 4 kB / 433.3 MB, free: 0.8633 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004407/0.2568, allocations: 377.7 kB / 433.6 MB, free: 496 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.2571, allocations: 36 kB / 433.7 MB, free: 460 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.2584, allocations: 1.043 MB / 434.7 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.2588, allocations: 0.8126 MB / 435.5 MB, free: 14.53 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.2589, allocations: 39.42 kB / 435.5 MB, free: 14.49 MB / 314.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2589, allocations: 0 / 435.5 MB, free: 14.49 MB / 314.7 MB Notification: Performance of Templates: time 0.00813/0.267, allocations: 6.307 MB / 441.9 MB, free: 8.18 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.sim & ./Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/ParallelResonance/ParallelResonance.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches