Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.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.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 111 kB / 17.74 MB, free: 5.34 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.001361/0.001361, allocations: 192.3 kB / 18.67 MB, free: 4.414 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.36/1.36, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009365/0.0009366, allocations: 51.92 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.237/0.238, allocations: 49.43 MB / 401.4 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.003659/0.2417, allocations: 2.895 MB / 404.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.2427, allocations: 0.6738 MB / 405 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001242/0.2428, allocations: 8 kB / 405 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001707/0.243, allocations: 59.42 kB / 405.1 MB, free: 5.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001523/0.2432, allocations: 79.2 kB / 405.1 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000241/0.2434, allocations: 103.8 kB / 405.2 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003527/0.2438, allocations: 378.9 kB / 405.6 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000265/0.244, allocations: 164.3 kB / 405.8 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.2443, allocations: 147.5 kB / 405.9 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.2444, allocations: 163.2 kB / 406.1 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.804e-05/0.2445, allocations: 32 kB / 406.1 MB, free: 4.344 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.454e-05/0.2446, allocations: 36 kB / 406.1 MB, free: 4.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.593e-05/0.2446, allocations: 71.77 kB / 406.2 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.2448, allocations: 167.2 kB / 406.4 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003392/0.2451, allocations: 387.8 kB / 406.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2451, allocations: 3.938 kB / 406.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2451, allocations: 0 / 406.7 MB, free: 3.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.2451, allocations: 4 kB / 406.7 MB, free: 3.688 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0008954/0.246, allocations: 0.6199 MB / 407.4 MB, free: 3.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.2461, allocations: 16.03 kB / 407.4 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.745e-05/0.2462, allocations: 36.55 kB / 407.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.2465, allocations: 259.7 kB / 407.7 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.16e-05/0.2465, allocations: 25.03 kB / 407.7 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.924e-05/0.2465, allocations: 32.38 kB / 407.7 MB, free: 2.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005184/0.2471, allocations: 282.3 kB / 408 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2471, allocations: 0 / 408 MB, free: 2.336 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.049e-05/0.2471, allocations: 16 kB / 408 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.657e-06/0.2471, allocations: 12 kB / 408 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004499/0.2476, allocations: 210.5 kB / 408.2 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00142/0.249, allocations: 1.022 MB / 409.3 MB, free: 1.004 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003105/0.2493, allocations: 161.9 kB / 409.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000273/0.2496, allocations: 135.5 kB / 409.6 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.821e-05/0.2497, allocations: 3.938 kB / 409.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.295e-05/0.2497, allocations: 38.55 kB / 409.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of pre-optimization done (n=19): time 1.322e-06/0.2497, allocations: 0 / 409.6 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.0005506/0.2503, allocations: 225.5 kB / 409.8 MB, free: 440 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.2503, allocations: 55.39 kB / 409.9 MB, free: 372 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000192/0.2505, allocations: 219.2 kB / 410.1 MB, free: 144 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.055e-05/0.2505, allocations: 29.7 kB / 410.1 MB, free: 108 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.2507, allocations: 191.9 kB / 410.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.023e-05/0.2507, allocations: 75 kB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.842e-05/0.2508, allocations: 49.89 kB / 410.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.2509, allocations: 334.8 kB / 410.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001698/0.2511, allocations: 68.52 kB / 410.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.2513, allocations: 147.3 kB / 411 MB, free: 15.2 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.2517, allocations: 229.2 kB / 411.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2517, allocations: 0 / 411.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004835/0.2522, allocations: 273 kB / 411.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.2522, allocations: 4 kB / 411.5 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.2522, allocations: 4 kB / 411.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.2523, allocations: 4.25 kB / 411.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002899/0.2526, allocations: 79.89 kB / 411.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.766e-06/0.2526, allocations: 4 kB / 411.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.2527, allocations: 23.78 kB / 411.6 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.714e-05/0.2528, allocations: 15.94 kB / 411.6 MB, free: 14.54 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001227/0.2529, allocations: 142.4 kB / 411.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.562e-05/0.2529, allocations: 27.66 kB / 411.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004162/0.2534, allocations: 204.7 kB / 411.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.2534, allocations: 7.938 kB / 412 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.2534, allocations: 0 / 412 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2534, allocations: 0 / 412 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007874/0.2542, allocations: 0.6001 MB / 412.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.2542, allocations: 8.062 kB / 412.6 MB, free: 13.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002772/0.2545, allocations: 55.91 kB / 412.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2545, allocations: 0 / 412.6 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.788e-05/0.2545, allocations: 8 kB / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.2545, allocations: 0 / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2545, allocations: 0 / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005857/0.2551, allocations: 387.4 kB / 413 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.706e-05/0.2552, allocations: 100.8 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.346e-05/0.2552, allocations: 4.062 kB / 413.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.2554, allocations: 19.98 kB / 413.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.2555, allocations: 7.984 kB / 413.1 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.485e-05/0.2555, allocations: 15.98 kB / 413.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001285/0.2556, allocations: 156.6 kB / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2556, allocations: 0 / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.256, allocations: 83.62 kB / 413.4 MB, free: 12.61 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.v) * 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 (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001169/0.2561, allocations: 103.2 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004053/0.2565, allocations: 176 kB / 413.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.2565, allocations: 0 / 413.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.2567, allocations: 75.91 kB / 413.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003239/0.257, allocations: 28.66 kB / 413.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001264/0.2583, allocations: 0.8616 MB / 414.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002977/0.2586, allocations: 0.7712 MB / 415.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.409e-05/0.2587, allocations: 23.44 kB / 415.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of SimCode: time 1.442e-06/0.2587, allocations: 4 kB / 415.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of Templates: time 0.004754/0.2635, allocations: 2.976 MB / 418.4 MB, free: 7.527 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches