Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.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.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|converter_e.singlePhaseElectroMagneticConverter.1..Phi.re|converter_e.singlePhaseElectroMagneticConverter.2..Phi.im|loss_m.Phi.im|loss_m.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|converter_e.singlePhaseElectroMagneticConverter.1..Phi.re|converter_e.singlePhaseElectroMagneticConverter.2..Phi.im|loss_m.Phi.im|loss_m.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 111.4 kB / 17.99 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001348/0.001348, allocations: 209.8 kB / 18.92 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 247.1 MB, free: 9.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 64.64 kB / 307.1 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0958/0.097, allocations: 50.53 MB / 357.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses): time 0.008704/0.1057, allocations: 7.791 MB / 365.4 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004843/0.1106, allocations: 2.433 MB / 367.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001555/0.1122, allocations: 55.75 kB / 367.9 MB, free: 3.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001409/0.1137, allocations: 381.9 kB / 368.3 MB, free: 3.484 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002721/0.1164, allocations: 0.77 MB / 369.1 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.1175, allocations: 371.4 kB / 369.4 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1723/0.2898, allocations: 3.221 MB / 372.6 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003658/0.2935, allocations: 2.896 MB / 375.5 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00208/0.2956, allocations: 1.421 MB / 377 MB, free: 8.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002629/0.2982, allocations: 1.735 MB / 378.7 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007416/0.299, allocations: 359.1 kB / 379 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00124/0.3002, allocations: 492.2 kB / 379.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007449/0.301, allocations: 0.9094 MB / 380.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002039/0.303, allocations: 1.615 MB / 382.1 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004605/0.3076, allocations: 3.889 MB / 385.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.3077, allocations: 1.531 kB / 385.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3077, allocations: 0 / 385.9 MB, free: 6.262 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001483/0.3078, allocations: 0 / 385.9 MB, free: 6.262 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: 689 * Number of variables: 689 Notification: Performance of Generate backend data structure: time 0.009884/0.3177, allocations: 3.653 MB / 389.6 MB, free: 4.375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.43e-05/0.3178, allocations: 9.125 kB / 389.6 MB, free: 4.375 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004195/0.322, allocations: 0.7472 MB / 390.4 MB, free: 4.062 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003469/0.3255, allocations: 1.783 MB / 392.1 MB, free: 2.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.3256, allocations: 201.2 kB / 392.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005608/0.3262, allocations: 266 kB / 392.6 MB, free: 2.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006282/0.3325, allocations: 3.615 MB / 396.2 MB, free: 0.625 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.343e-05/0.3326, allocations: 0 / 396.2 MB, free: 0.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002529/0.3328, allocations: 109.6 kB / 396.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.813e-05/0.3329, allocations: 106.4 kB / 396.4 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005155/0.3381, allocations: 3.091 MB / 399.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01675/0.3549, allocations: 10.35 MB / 409.9 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004887/0.3598, allocations: 4.566 MB / 414.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001414/0.3612, allocations: 0.946 MB / 415.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004131/0.3654, allocations: 2.648 MB / 418 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.386e-05/0.3654, allocations: 47.42 kB / 418.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=104): time 2.705e-06/0.3655, allocations: 0 / 418.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=104): time 0.006085/0.3715, allocations: 2.66 MB / 420.7 MB, free: 9.082 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.3716, allocations: 89.97 kB / 420.8 MB, free: 8.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002235/0.3739, allocations: 1.4 MB / 422.2 MB, free: 7.566 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/0.374, allocations: 45.7 kB / 422.3 MB, free: 7.516 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007552/0.3747, allocations: 1.175 MB / 423.4 MB, free: 6.328 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002887/0.375, allocations: 355.9 kB / 423.8 MB, free: 5.984 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003461/0.3754, allocations: 222.8 kB / 424 MB, free: 5.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.3755, allocations: 357.9 kB / 424.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009236/0.3765, allocations: 0.5608 MB / 424.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001069/0.3775, allocations: 0.8483 MB / 425.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001952/0.3795, allocations: 1.46 MB / 427.2 MB, free: 2.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.3795, allocations: 4 kB / 427.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003306/0.3828, allocations: 1.964 MB / 429.2 MB, free: 436 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.674e-05/0.3829, allocations: 8 kB / 429.2 MB, free: 428 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/0.3829, allocations: 11.75 kB / 429.2 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/0.3839, allocations: 400.6 kB / 429.6 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008356/0.3848, allocations: 214.9 kB / 429.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007307/0.3921, allocations: 6.533 MB / 436.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001198/0.3933, allocations: 142.7 kB / 436.5 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001514/0.3935, allocations: 47.98 kB / 436.5 MB, free: 8.859 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (110): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,19,100.0%), (2,21,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001729/0.3952, allocations: 0.8758 MB / 437.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004533/0.3957, allocations: 138.3 kB / 437.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003273/0.399, allocations: 1.649 MB / 439.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.399, allocations: 12 kB / 439.2 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.83e-05/0.399, allocations: 4 kB / 439.2 MB, free: 6.188 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.618e-05/0.399, allocations: 7.969 kB / 439.2 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00769/0.4067, allocations: 3.924 MB / 443.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.4067, allocations: 0 / 443.1 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000591/0.4073, allocations: 134.9 kB / 443.3 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/0.4084, allocations: 401.4 kB / 443.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.079e-05/0.4085, allocations: 31.98 kB / 443.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007653/0.4162, allocations: 6.514 MB / 450.2 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.4162, allocations: 7.5 kB / 450.2 MB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004191/0.4204, allocations: 2.486 MB / 452.7 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005653/0.421, allocations: 239.2 kB / 452.9 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003273/0.4213, allocations: 31.98 kB / 453 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009333/0.4223, allocations: 87.91 kB / 453 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002337/0.4225, allocations: 104.3 kB / 453.1 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.623e-05/0.4226, allocations: 28 kB / 453.2 MB, free: 7.898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001576/0.4242, allocations: 0.9834 MB / 454.2 MB, free: 6.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4242, allocations: 0 / 454.2 MB, free: 6.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002146/0.4263, allocations: 0.6727 MB / 454.8 MB, free: 6.234 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (converter_e.singlePhaseElectroMagneticConverter[3].Phi.re,converter_e.singlePhaseElectroMagneticConverter[3].Phi.im,loss_m.Phi.re,loss_m.Phi.im) * 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 (64): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,21,100.0%), (2,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003369/0.4267, allocations: 154 kB / 455 MB, free: 6.086 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003393/0.4301, allocations: 1.938 MB / 456.9 MB, free: 4.156 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/0.4301, allocations: 0 / 456.9 MB, free: 4.156 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001825/0.4319, allocations: 1.132 MB / 458.1 MB, free: 3.016 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001814/0.4338, allocations: 303.9 kB / 458.3 MB, free: 2.723 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009652/0.4434, allocations: 5.728 MB / 464.1 MB, free: 12.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002275/0.4457, allocations: 2.132 MB / 466.2 MB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004347/0.4462, allocations: 99.36 kB / 466.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4462, allocations: 0 / 466.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of Templates: time 0.06222/0.5084, allocations: 53.13 MB / 0.5073 GB, free: 5.641 MB / 430.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/Components/EddyCurrentLosses/EddyCurrentLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.Components.EddyCurrentLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches