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.001196/0.001195, allocations: 98.53 kB / 16.99 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, allocations: 202.8 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.2 MB / 245.9 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002853/0.0002855, allocations: 4 kB / 306.6 MB, free: 1.402 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1059, allocations: 51.49 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.007661/0.1136, allocations: 6.35 MB / 364.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005677/0.1193, allocations: 2.623 MB / 367 MB, free: 4.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002003/0.1213, allocations: 59.69 kB / 367.1 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002131/0.1235, allocations: 469.5 kB / 367.6 MB, free: 4.383 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003149/0.1267, allocations: 0.592 MB / 368.2 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00127/0.128, allocations: 275.6 kB / 368.4 MB, free: 3.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004367/0.1324, allocations: 2.09 MB / 370.5 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1992/0.3315, allocations: 2.494 MB / 373 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002884/0.3345, allocations: 1.106 MB / 374.1 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003384/0.3379, allocations: 1.418 MB / 375.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.339, allocations: 189.3 kB / 375.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002014/0.3411, allocations: 366 kB / 376.1 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002161/0.3432, allocations: 0.8682 MB / 376.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00297/0.3462, allocations: 0.6561 MB / 377.6 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008169/0.3544, allocations: 4.954 MB / 382.6 MB, free: 8.559 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3545, allocations: 4 kB / 382.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.556e-06/0.3545, allocations: 1.781 kB / 382.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002964/0.3548, allocations: 0 / 382.6 MB, free: 8.555 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.009529/0.3643, allocations: 3.222 MB / 385.8 MB, free: 6.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.3644, allocations: 8.25 kB / 385.8 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002307/0.3667, allocations: 436.2 kB / 386.2 MB, free: 6.488 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00415/0.3709, allocations: 2.029 MB / 388.2 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.371, allocations: 218.1 kB / 388.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004587/0.3715, allocations: 289.5 kB / 388.7 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006643/0.3781, allocations: 4.154 MB / 392.9 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.547e-05/0.3782, allocations: 0.6875 kB / 392.9 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002662/0.3785, allocations: 119 kB / 393 MB, free: 4.203 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001592/0.3786, allocations: 146.7 kB / 393.2 MB, free: 4.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005182/0.3838, allocations: 3.481 MB / 396.6 MB, free: 2.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01773/0.4016, allocations: 10.96 MB / 407.6 MB, free: 8.996 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002782/0.4044, allocations: 2.642 MB / 410.2 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002526/0.4047, allocations: 124.2 kB / 410.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.4047, allocations: 51.55 kB / 410.4 MB, free: 5.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=128): time 3.507e-06/0.4047, allocations: 0 / 410.4 MB, free: 5.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01052/0.4153, allocations: 5.679 MB / 416.1 MB, free: 140 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.614e-05/0.4154, allocations: 90.42 kB / 416.2 MB, free: 28 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003055/0.4184, allocations: 1.898 MB / 418.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001947/0.4186, allocations: 46.25 kB / 418.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009426/0.4196, allocations: 1.331 MB / 419.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004171/0.42, allocations: 448.9 kB / 419.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.291e-05/0.4201, allocations: 28 kB / 419.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.4203, allocations: 365.9 kB / 420.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001264/0.4215, allocations: 0.8314 MB / 421.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/0.4229, allocations: 1.186 MB / 422.3 MB, free: 9.738 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001402/0.4243, allocations: 1.029 MB / 423.3 MB, free: 8.707 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.4244, allocations: 2.406 kB / 423.3 MB, free: 8.707 MB / 334.1 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.004402/0.4288, allocations: 2.574 MB / 425.9 MB, free: 6.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.69e-05/0.4288, allocations: 8 kB / 425.9 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.819e-05/0.4288, allocations: 12 kB / 425.9 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001894/0.4307, allocations: 0.4955 MB / 426.4 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00134/0.4321, allocations: 331.5 kB / 426.7 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005309/0.4374, allocations: 4.365 MB / 431.1 MB, free: 0.793 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001641/0.4391, allocations: 89.22 kB / 431.2 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/0.4393, allocations: 63.98 kB / 431.2 MB, free: 0.6445 MB / 334.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 (154): * Single equations (assignments): 149 * Array equations: 4 * 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%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001999/0.4413, allocations: 1.053 MB / 432.3 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004942/0.4418, allocations: 181.8 kB / 432.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003493/0.4453, allocations: 2.187 MB / 434.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.485e-05/0.4453, allocations: 19.98 kB / 434.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.4453, allocations: 4 kB / 434.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.4454, allocations: 7.938 kB / 434.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00869/0.4541, allocations: 5.152 MB / 439.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.4541, allocations: 2.406 kB / 439.8 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009754/0.4551, allocations: 227.8 kB / 440.1 MB, free: 7.746 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001829/0.4569, allocations: 475.9 kB / 440.5 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.457, allocations: 35.98 kB / 440.6 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005123/0.4622, allocations: 4.301 MB / 444.9 MB, free: 2.816 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4622, allocations: 4.062 kB / 444.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00502/0.4672, allocations: 3.299 MB / 448.2 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.4686, allocations: 466.7 kB / 448.6 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003003/0.4689, allocations: 28.69 kB / 448.7 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.4699, allocations: 100.7 kB / 448.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002176/0.4701, allocations: 90.5 kB / 448.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.459e-05/0.4702, allocations: 43.92 kB / 448.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00209/0.4723, allocations: 1.326 MB / 450.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4723, allocations: 0 / 450.2 MB, free: 13.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001963/0.4743, allocations: 0.5518 MB / 450.8 MB, free: 12.87 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (98): * Single equations (assignments): 93 * Array equations: 4 * 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%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000491/0.4748, allocations: 186.5 kB / 450.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003482/0.4783, allocations: 2.225 MB / 453.2 MB, free: 10.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.828e-06/0.4783, allocations: 8 kB / 453.2 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00195/0.4803, allocations: 1.225 MB / 454.4 MB, free: 9.207 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/0.4828, allocations: 488.7 kB / 454.9 MB, free: 8.734 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/0.4952, allocations: 6.734 MB / 461.6 MB, free: 1.957 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002229/0.4975, allocations: 2.484 MB / 464.1 MB, free: 15.45 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001569/0.4991, allocations: 487.4 kB / 464.6 MB, free: 14.96 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004044/0.4995, allocations: 127.4 kB / 464.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.342e-06/0.4995, allocations: 3.938 kB / 464.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of Templates: time 0.04617/0.5457, allocations: 27.95 MB / 492.7 MB, free: 3.176 MB / 398.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","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches