Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.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.QuasiStatic.SinglePhase.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|resistor.pin_p.reference.gamma",fileNamePrefix="Modelica_trunk_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_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001031/0.001031, allocations: 104.1 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.4 MB / 246.4 MB, free: 9.074 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 58.86 kB / 306.4 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0881/0.08924, allocations: 50.53 MB / 357 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance): time 0.004558/0.09384, allocations: 3.729 MB / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002206/0.09609, allocations: 1.464 MB / 362.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001637/0.09627, allocations: 8 kB / 362.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001623/0.09792, allocations: 0.7005 MB / 362.9 MB, free: 8.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008021/0.09874, allocations: 350.4 kB / 363.2 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009437/0.09969, allocations: 0.5212 MB / 363.7 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000419/0.1001, allocations: 462 kB / 364.2 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000719/0.1008, allocations: 0.51 MB / 364.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002968/0.1012, allocations: 227.2 kB / 364.9 MB, free: 6.203 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002685/0.1014, allocations: 274.9 kB / 365.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.422e-05/0.1015, allocations: 48 kB / 365.2 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003694/0.1019, allocations: 215.8 kB / 365.4 MB, free: 5.676 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.055e-05/0.102, allocations: 107.6 kB / 365.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000184/0.1022, allocations: 234.9 kB / 365.8 MB, free: 5.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006793/0.1028, allocations: 0.6892 MB / 366.5 MB, free: 4.648 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1029, allocations: 0 / 366.5 MB, free: 4.648 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1029, allocations: 0 / 366.5 MB, free: 4.648 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.1029, allocations: 0 / 366.5 MB, free: 4.648 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.001947/0.1048, allocations: 0.9248 MB / 367.4 MB, free: 3.676 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/0.1049, allocations: 8.031 kB / 367.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003588/0.1085, allocations: 499.9 kB / 367.9 MB, free: 3.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.1088, allocations: 306.9 kB / 368.2 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.264e-05/0.1089, allocations: 41.69 kB / 368.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.398e-05/0.109, allocations: 56.38 kB / 368.3 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000945/0.1099, allocations: 0.5259 MB / 368.8 MB, free: 2.215 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.11, allocations: 0 / 368.8 MB, free: 2.215 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.213e-05/0.11, allocations: 20 kB / 368.8 MB, free: 2.195 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.123e-05/0.11, allocations: 12 kB / 368.8 MB, free: 2.184 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.111, allocations: 0.5751 MB / 369.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1469/0.2579, allocations: 1.965 MB / 371.4 MB, free: 18.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001595/0.2595, allocations: 2.167 MB / 373.6 MB, free: 16.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004343/0.26, allocations: 274 kB / 373.8 MB, free: 16.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001035/0.2601, allocations: 170.1 kB / 374 MB, free: 16.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.082e-05/0.2601, allocations: 40.33 kB / 374 MB, free: 16.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.064e-06/0.2601, allocations: 0 / 374 MB, free: 16.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.001716/0.2619, allocations: 0.7373 MB / 374.8 MB, free: 16.58 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.033e-05/0.2619, allocations: 57 kB / 374.8 MB, free: 16.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.2621, allocations: 191.3 kB / 375 MB, free: 16.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.2621, allocations: 33.7 kB / 375 MB, free: 16.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.513e-05/0.2622, allocations: 219.9 kB / 375.3 MB, free: 16.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.792e-05/0.2623, allocations: 166.7 kB / 375.4 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.2624, allocations: 80.25 kB / 375.5 MB, free: 16.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.488e-05/0.2625, allocations: 338.7 kB / 375.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/0.2628, allocations: 152 kB / 376 MB, free: 15.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003199/0.2631, allocations: 240.4 kB / 376.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006108/0.2637, allocations: 412.2 kB / 376.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.2637, allocations: 0.8438 kB / 376.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009524/0.2647, allocations: 0.5372 MB / 377.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.2647, allocations: 6.266 kB / 377.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.2647, allocations: 2.406 kB / 377.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003211/0.2651, allocations: 94.33 kB / 377.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003728/0.2654, allocations: 89.98 kB / 377.3 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.2668, allocations: 1.77 MB / 379.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/0.2671, allocations: 47.81 kB / 379.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.252e-05/0.2671, allocations: 19.98 kB / 379.2 MB, free: 13.45 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 (52): * Single equations (assignments): 51 * 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): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001488/0.2673, allocations: 170.8 kB / 379.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.925e-05/0.2673, allocations: 28 kB / 379.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.2684, allocations: 0.5347 MB / 379.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.2684, allocations: 5.531 kB / 379.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2684, allocations: 1.25 kB / 379.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.2684, allocations: 4.359 kB / 379.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.2699, allocations: 1.151 MB / 381.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2699, allocations: 3.75 kB / 381.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003183/0.2702, allocations: 88.75 kB / 381.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002526/0.2705, allocations: 77.41 kB / 381.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.902e-05/0.2705, allocations: 12.84 kB / 381.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001228/0.2718, allocations: 1.772 MB / 383 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2718, allocations: 1.031 kB / 383 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001184/0.273, allocations: 0.8012 MB / 383.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.353e-05/0.273, allocations: 106.9 kB / 383.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.376e-05/0.2731, allocations: 12.41 kB / 383.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.2733, allocations: 23.17 kB / 384 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.193e-05/0.2734, allocations: 42.7 kB / 384 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.2735, allocations: 15.88 kB / 384 MB, free: 10.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.357e-05/0.2735, allocations: 130.5 kB / 384.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2735, allocations: 3.938 kB / 384.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005138/0.2741, allocations: 144.3 kB / 384.3 MB, free: 10.02 MB / 302.1 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 (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): 1 system {(2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002077/0.2743, allocations: 148.4 kB / 384.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.2754, allocations: 0.584 MB / 385 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2754, allocations: 1.375 kB / 385 MB, free: 9.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005306/0.2759, allocations: 381.5 kB / 385.4 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004023/0.2763, allocations: 35.19 kB / 385.4 MB, free: 9.395 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.2775, allocations: 1.016 MB / 386.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002228/0.2777, allocations: 0.8119 MB / 387.3 MB, free: 8.008 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002263/0.278, allocations: 45.34 kB / 387.3 MB, free: 8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.844e-05/0.2781, allocations: 34.77 kB / 387.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2781, allocations: 0 / 387.3 MB, free: 7.992 MB / 302.1 MB Notification: Performance of Templates: time 0.008261/0.2863, allocations: 4.318 MB / 391.6 MB, free: 7.465 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches