Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.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.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007626/0.0007625, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009123/0.0009123, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.7 MB / 246.8 MB, free: 11.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002274/0.0002273, allocations: 4 kB / 307.7 MB, free: 0.832 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09019/0.09043, allocations: 51.53 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.007347/0.09782, allocations: 7.219 MB / 366.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004618/0.1025, allocations: 2.668 MB / 369.1 MB, free: 3.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008143/0.1033, allocations: 59.69 kB / 369.2 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.1044, allocations: 489.4 kB / 369.7 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001804/0.1062, allocations: 0.6763 MB / 370.3 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008522/0.107, allocations: 367.6 kB / 370.7 MB, free: 1.793 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1737/0.2808, allocations: 3.676 MB / 374.4 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004059/0.2849, allocations: 2.928 MB / 377.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003055/0.288, allocations: 1.211 MB / 378.5 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003222/0.2912, allocations: 1.655 MB / 380.2 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005901/0.2918, allocations: 188.5 kB / 380.4 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001343/0.2932, allocations: 417.3 kB / 380.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001089/0.2943, allocations: 0.907 MB / 381.7 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002338/0.2966, allocations: 1.618 MB / 383.3 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005974/0.3026, allocations: 5.714 MB / 389 MB, free: 5.438 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.07e-06/0.3026, allocations: 3.938 kB / 389 MB, free: 5.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3026, allocations: 5 kB / 389 MB, free: 5.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.00014/0.3028, allocations: 0 / 389 MB, free: 5.43 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: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.007382/0.3102, allocations: 3.192 MB / 392.2 MB, free: 3.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.3102, allocations: 13.61 kB / 392.2 MB, free: 3.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001894/0.3121, allocations: 440.9 kB / 392.7 MB, free: 3.113 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003825/0.316, allocations: 2.096 MB / 394.8 MB, free: 1.77 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001738/0.3162, allocations: 223.4 kB / 395 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005932/0.3168, allocations: 288.2 kB / 395.3 MB, free: 1.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007078/0.3238, allocations: 4.207 MB / 399.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.022e-05/0.3239, allocations: 0 / 399.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002993/0.3242, allocations: 118.4 kB / 399.6 MB, free: 15.04 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001492/0.3244, allocations: 136.1 kB / 399.7 MB, free: 15.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006331/0.3307, allocations: 3.507 MB / 403.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01987/0.3506, allocations: 10.97 MB / 414.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002969/0.3536, allocations: 2.665 MB / 416.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002359/0.356, allocations: 1.48 MB / 418.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002643/0.3563, allocations: 124.3 kB / 418.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.3563, allocations: 58.95 kB / 418.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=128): time 3.256e-06/0.3563, allocations: 0 / 418.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=133): time 0.009005/0.3653, allocations: 5.194 MB / 423.7 MB, free: 7.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.304e-05/0.3654, allocations: 94.41 kB / 423.8 MB, free: 7.312 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002692/0.3681, allocations: 1.914 MB / 425.7 MB, free: 5.395 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.363e-05/0.3682, allocations: 55.44 kB / 425.8 MB, free: 5.336 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008899/0.3691, allocations: 1.33 MB / 427.1 MB, free: 3.992 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003319/0.3695, allocations: 452.3 kB / 427.5 MB, free: 3.555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001773/0.3697, allocations: 125.4 kB / 427.7 MB, free: 3.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.297e-05/0.3698, allocations: 305.1 kB / 428 MB, free: 3.129 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.371, allocations: 0.8159 MB / 428.8 MB, free: 2.312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00147/0.3725, allocations: 1.196 MB / 430 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002986/0.3755, allocations: 2.093 MB / 432.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.426e-06/0.3755, allocations: 4 kB / 432.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004343/0.3799, allocations: 2.547 MB / 434.6 MB, free: 12.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.756e-05/0.3799, allocations: 15.92 kB / 434.6 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.035e-05/0.3799, allocations: 12 kB / 434.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001989/0.3819, allocations: 471.1 kB / 435.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001348/0.3833, allocations: 335.5 kB / 435.4 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005205/0.3885, allocations: 4.072 MB / 439.5 MB, free: 7.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001594/0.3901, allocations: 79.94 kB / 439.6 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001571/0.3903, allocations: 63.98 kB / 439.6 MB, free: 7.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (158): * Single equations (assignments): 153 * Array equations: 4 * 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,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002058/0.3923, allocations: 1.053 MB / 440.7 MB, free: 6.027 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004991/0.3928, allocations: 193.7 kB / 440.9 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003745/0.3966, allocations: 2.167 MB / 443 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.5e-05/0.3966, allocations: 16 kB / 443.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.3967, allocations: 7.984 kB / 443.1 MB, free: 3.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.3967, allocations: 3.984 kB / 443.1 MB, free: 3.629 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008428/0.4051, allocations: 5.213 MB / 448.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.4051, allocations: 0 / 448.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.4062, allocations: 235.9 kB / 448.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001927/0.4081, allocations: 452.3 kB / 449 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-05/0.4082, allocations: 39.33 kB / 449 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005065/0.4133, allocations: 3.974 MB / 453 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.4133, allocations: 0 / 453 MB, free: 9.531 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005483/0.4188, allocations: 3.276 MB / 456.2 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001135/0.4199, allocations: 462.7 kB / 456.7 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005177/0.4205, allocations: 35.94 kB / 456.7 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/0.4218, allocations: 104 kB / 456.8 MB, free: 5.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002264/0.4221, allocations: 88.88 kB / 456.9 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000105/0.4222, allocations: 39.98 kB / 457 MB, free: 5.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002383/0.4246, allocations: 1.346 MB / 458.3 MB, free: 4.141 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4246, allocations: 0 / 458.3 MB, free: 4.141 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002349/0.4269, allocations: 0.5538 MB / 458.9 MB, free: 3.59 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * 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 (104): * Single equations (assignments): 99 * Array equations: 4 * 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,26,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007259/0.4277, allocations: 221.6 kB / 459.1 MB, free: 3.371 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00394/0.4316, allocations: 2.2 MB / 461.3 MB, free: 1.156 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.4316, allocations: 0 / 461.3 MB, free: 1.156 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002074/0.4337, allocations: 1.219 MB / 462.5 MB, free: 15.93 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003335/0.4371, allocations: 0.491 MB / 463 MB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01264/0.4497, allocations: 7.085 MB / 470.1 MB, free: 8.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002832/0.4526, allocations: 2.424 MB / 472.5 MB, free: 5.855 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001768/0.4544, allocations: 0.4915 MB / 473 MB, free: 5.359 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005316/0.4549, allocations: 131.4 kB / 473.1 MB, free: 5.23 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4549, allocations: 0 / 473.1 MB, free: 5.23 MB / 382.1 MB Notification: Performance of Templates: time 0.05211/0.507, allocations: 28.6 MB / 0.49 GB, free: 8.906 MB / 414.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches