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.0007932/0.0007932, allocations: 100.7 kB / 17 MB, free: 6.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008648/0.0008648, allocations: 200.1 kB / 17.91 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.7 MB / 246.4 MB, free: 11.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002149/0.000215, allocations: 8 kB / 307.1 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09216/0.09239, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.007791/0.1002, allocations: 6.801 MB / 365.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005082/0.1054, allocations: 2.575 MB / 368 MB, free: 4.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.1064, allocations: 59.69 kB / 368.1 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001083/0.1075, allocations: 437.2 kB / 368.5 MB, free: 3.742 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001592/0.1091, allocations: 0.6373 MB / 369.1 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006722/0.1098, allocations: 267.6 kB / 369.4 MB, free: 2.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1606/0.2705, allocations: 3.356 MB / 372.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003662/0.2742, allocations: 2.501 MB / 375.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001943/0.2761, allocations: 1.187 MB / 376.4 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002438/0.2786, allocations: 1.584 MB / 378 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000594/0.2792, allocations: 196 kB / 378.2 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001077/0.2803, allocations: 341.7 kB / 378.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009335/0.2812, allocations: 0.9033 MB / 379.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008628/0.2821, allocations: 0.659 MB / 380.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005341/0.2875, allocations: 4.972 MB / 385.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.2875, allocations: 0 / 385.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.2875, allocations: 2.344 kB / 385.1 MB, free: 7.586 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002055/0.2877, allocations: 0 / 385.1 MB, free: 7.586 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.007797/0.2955, allocations: 3.233 MB / 388.3 MB, free: 5.719 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.2956, allocations: 13.25 kB / 388.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00269/0.2983, allocations: 436.8 kB / 388.8 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00442/0.3027, allocations: 2.039 MB / 390.8 MB, free: 4.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001911/0.303, allocations: 227.3 kB / 391 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006922/0.3037, allocations: 283.2 kB / 391.3 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007343/0.311, allocations: 4.17 MB / 395.5 MB, free: 3.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.763e-05/0.3111, allocations: 2.297 kB / 395.5 MB, free: 3.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002713/0.3114, allocations: 125 kB / 395.6 MB, free: 2.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001254/0.3115, allocations: 143.5 kB / 395.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005053/0.3166, allocations: 3.475 MB / 399.2 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01782/0.3344, allocations: 10.97 MB / 410.2 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002854/0.3373, allocations: 2.643 MB / 412.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002353/0.3397, allocations: 1.502 MB / 414.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002444/0.3399, allocations: 120.5 kB / 414.4 MB, free: 1.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.34, allocations: 55.52 kB / 414.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=128): time 3.176e-06/0.34, allocations: 0 / 414.5 MB, free: 1.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=133): time 0.009163/0.3492, allocations: 5.18 MB / 419.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.085e-05/0.3492, allocations: 94.42 kB / 419.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002843/0.3521, allocations: 1.902 MB / 421.7 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.3522, allocations: 51.42 kB / 421.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009179/0.3532, allocations: 1.326 MB / 423 MB, free: 9.223 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003751/0.3535, allocations: 463.6 kB / 423.5 MB, free: 8.781 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.73e-05/0.3536, allocations: 32 kB / 423.5 MB, free: 8.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.3538, allocations: 365.9 kB / 423.9 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00125/0.355, allocations: 0.8159 MB / 424.7 MB, free: 7.57 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.3565, allocations: 1.182 MB / 425.9 MB, free: 6.246 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001458/0.358, allocations: 1.01 MB / 426.9 MB, free: 5.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.358, allocations: 4 kB / 426.9 MB, free: 5.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004395/0.3624, allocations: 2.53 MB / 429.4 MB, free: 2.688 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.3625, allocations: 8 kB / 429.4 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/0.3625, allocations: 12 kB / 429.5 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001844/0.3643, allocations: 476.8 kB / 429.9 MB, free: 2.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/0.3657, allocations: 335.5 kB / 430.2 MB, free: 1.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005151/0.3709, allocations: 4.064 MB / 434.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/0.3725, allocations: 95.83 kB / 434.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001816/0.3727, allocations: 61.16 kB / 434.5 MB, free: 13.54 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 (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%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002512/0.3752, allocations: 1.052 MB / 435.5 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006186/0.3758, allocations: 189.7 kB / 435.7 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003803/0.3796, allocations: 2.146 MB / 437.8 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-05/0.3797, allocations: 23.95 kB / 437.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.3797, allocations: 4 kB / 437.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.563e-05/0.3797, allocations: 11.97 kB / 437.9 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009282/0.389, allocations: 5.202 MB / 443.1 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.389, allocations: 0 / 443.1 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009814/0.39, allocations: 227.6 kB / 443.3 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001765/0.3918, allocations: 462.7 kB / 443.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001013/0.3919, allocations: 38.17 kB / 443.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00483/0.3968, allocations: 3.961 MB / 447.8 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3968, allocations: 4 kB / 447.8 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005188/0.402, allocations: 3.26 MB / 451 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001143/0.4032, allocations: 462.6 kB / 451.5 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003117/0.4035, allocations: 33.55 kB / 451.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009935/0.4045, allocations: 104 kB / 451.6 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002126/0.4047, allocations: 96.81 kB / 451.7 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.717e-05/0.4048, allocations: 39.98 kB / 451.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002144/0.407, allocations: 1.338 MB / 453.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.407, allocations: 0 / 453.1 MB, free: 10.64 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001929/0.4089, allocations: 0.5519 MB / 453.6 MB, free: 10.09 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 (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%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004731/0.4094, allocations: 180.3 kB / 453.8 MB, free: 9.918 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003588/0.413, allocations: 2.19 MB / 456 MB, free: 7.719 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.413, allocations: 4.312 kB / 456 MB, free: 7.715 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001912/0.4149, allocations: 1.214 MB / 457.2 MB, free: 6.492 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002333/0.4173, allocations: 0.4901 MB / 457.7 MB, free: 6.004 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/0.4284, allocations: 6.772 MB / 464.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002367/0.4308, allocations: 2.432 MB / 466.9 MB, free: 12.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001715/0.4326, allocations: 495.4 kB / 467.4 MB, free: 12.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004696/0.433, allocations: 135.4 kB / 467.5 MB, free: 12.1 MB / 382.1 MB Notification: Performance of SimCode: time 1.213e-06/0.433, allocations: 4 kB / 467.5 MB, free: 12.09 MB / 382.1 MB Notification: Performance of Templates: time 0.05094/0.484, allocations: 27.89 MB / 495.4 MB, free: 0.4922 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","/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