Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00148/0.00148, allocations: 196.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 226.6 MB / 244.3 MB, free: 8.305 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000803/0.0008031, allocations: 90.47 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002619/0.000262, allocations: 11.98 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2816, allocations: 51.28 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.005238/0.2869, allocations: 6.788 MB / 414.3 MB, free: 21.02 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003595/0.2905, allocations: 2.557 MB / 416.8 MB, free: 18.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001182/0.2917, allocations: 63.69 kB / 416.9 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001183/0.2929, allocations: 437.2 kB / 417.3 MB, free: 17.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001719/0.2947, allocations: 0.6373 MB / 418 MB, free: 17.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007788/0.2955, allocations: 275.6 kB / 418.2 MB, free: 17.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002557/0.298, allocations: 3.351 MB / 421.6 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00271/0.3008, allocations: 2.499 MB / 424.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001467/0.3022, allocations: 1.175 MB / 425.3 MB, free: 9.984 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001853/0.3041, allocations: 1.588 MB / 426.9 MB, free: 8.391 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005826/0.3047, allocations: 191.9 kB / 427 MB, free: 8.203 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001269/0.306, allocations: 363.7 kB / 427.4 MB, free: 7.848 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008226/0.3068, allocations: 0.9152 MB / 428.3 MB, free: 6.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006396/0.3075, allocations: 0.6524 MB / 429 MB, free: 6.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002949/0.3104, allocations: 4.964 MB / 433.9 MB, free: 1.293 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3104, allocations: 0 / 433.9 MB, free: 1.293 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3104, allocations: 0 / 433.9 MB, free: 1.293 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.758e-05/0.3105, allocations: 0 / 433.9 MB, free: 1.293 MB / 298.7 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.005179/0.3157, allocations: 3.233 MB / 437.2 MB, free: 13.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.3157, allocations: 12.03 kB / 437.2 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001249/0.317, allocations: 439.7 kB / 437.6 MB, free: 13.55 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002963/0.32, allocations: 2.026 MB / 439.6 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000165/0.3201, allocations: 221.8 kB / 439.8 MB, free: 11.25 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003685/0.3205, allocations: 287.9 kB / 440.1 MB, free: 10.96 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006409/0.3269, allocations: 4.175 MB / 444.3 MB, free: 6.738 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.076e-05/0.327, allocations: 3.781 kB / 444.3 MB, free: 6.738 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002549/0.3273, allocations: 120 kB / 444.4 MB, free: 6.621 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001494/0.3274, allocations: 137.9 kB / 444.6 MB, free: 6.484 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005238/0.3327, allocations: 3.482 MB / 448 MB, free: 2.992 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01561/0.3483, allocations: 10.97 MB / 459 MB, free: 7.828 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002541/0.3509, allocations: 2.65 MB / 461.7 MB, free: 4.969 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002179/0.3531, allocations: 1.497 MB / 463.2 MB, free: 3.469 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002145/0.3533, allocations: 122.1 kB / 463.3 MB, free: 3.332 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.741e-05/0.3534, allocations: 51.56 kB / 463.3 MB, free: 3.273 MB / 330.7 MB Notification: Performance of pre-optimization done (n=128): time 3.727e-06/0.3534, allocations: 0 / 463.3 MB, free: 3.273 MB / 330.7 MB Notification: Performance of matching and sorting (n=133): time 0.008297/0.3617, allocations: 5.176 MB / 468.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.3618, allocations: 94.42 kB / 468.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002464/0.3642, allocations: 1.902 MB / 470.5 MB, free: 12.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.628e-05/0.3643, allocations: 49.7 kB / 470.5 MB, free: 11.97 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008263/0.3652, allocations: 1.318 MB / 471.9 MB, free: 10.63 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003152/0.3655, allocations: 453.4 kB / 472.3 MB, free: 10.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.536e-05/0.3656, allocations: 32 kB / 472.3 MB, free: 10.15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.3657, allocations: 365.9 kB / 472.7 MB, free: 9.789 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.3669, allocations: 0.8159 MB / 473.5 MB, free: 8.973 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001423/0.3683, allocations: 1.182 MB / 474.7 MB, free: 7.645 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.3698, allocations: 1.013 MB / 475.7 MB, free: 6.633 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.3698, allocations: 4 kB / 475.7 MB, free: 6.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003872/0.3737, allocations: 2.527 MB / 478.2 MB, free: 4.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.3737, allocations: 15.94 kB / 478.2 MB, free: 4.074 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.819e-05/0.3737, allocations: 8 kB / 478.3 MB, free: 4.066 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001956/0.3757, allocations: 487 kB / 478.7 MB, free: 3.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.377, allocations: 339.5 kB / 479.1 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004839/0.3818, allocations: 4.051 MB / 483.1 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001175/0.383, allocations: 87.98 kB / 483.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/0.3832, allocations: 63.98 kB / 483.3 MB, free: 14.92 MB / 362.7 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.001624/0.3848, allocations: 1.051 MB / 484.3 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004272/0.3852, allocations: 189.8 kB / 484.5 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003387/0.3886, allocations: 2.149 MB / 486.6 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.344e-05/0.3887, allocations: 16 kB / 486.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.3887, allocations: 4 kB / 486.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.485e-05/0.3887, allocations: 7.969 kB / 486.7 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007776/0.3965, allocations: 5.214 MB / 491.9 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.3965, allocations: 0 / 491.9 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009397/0.3975, allocations: 227.6 kB / 492.1 MB, free: 5.953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001815/0.3993, allocations: 456.8 kB / 492.6 MB, free: 5.504 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.9e-05/0.3994, allocations: 35.98 kB / 492.6 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004497/0.4039, allocations: 3.963 MB / 496.6 MB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.4039, allocations: 4 kB / 496.6 MB, free: 1.359 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004615/0.4085, allocations: 3.257 MB / 499.8 MB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007993/0.4093, allocations: 466.7 kB / 0.4885 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002018/0.4096, allocations: 35.94 kB / 0.4886 GB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009411/0.4105, allocations: 99.91 kB / 0.4887 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001806/0.4107, allocations: 96.8 kB / 0.4888 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.352e-05/0.4108, allocations: 39.98 kB / 0.4888 GB, free: 13.32 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001747/0.4125, allocations: 1.326 MB / 0.4901 GB, free: 12 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4125, allocations: 0 / 0.4901 GB, free: 12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001436/0.414, allocations: 0.5547 MB / 0.4906 GB, free: 11.44 MB / 378.7 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.0004118/0.4144, allocations: 195.8 kB / 0.4908 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003175/0.4176, allocations: 2.187 MB / 0.493 GB, free: 9.051 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.4176, allocations: 2 kB / 0.493 GB, free: 9.051 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001732/0.4193, allocations: 1.218 MB / 0.4942 GB, free: 7.816 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002004/0.4214, allocations: 0.4913 MB / 0.4946 GB, free: 7.332 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008595/0.43, allocations: 6.736 MB / 0.5012 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1736/0.6036, allocations: 2.359 MB / 0.5035 GB, free: 89.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008747/0.6045, allocations: 146.7 kB / 0.5037 GB, free: 89.22 MB / 378.7 MB Notification: Performance of SimCode: time 1.533e-06/0.6045, allocations: 0 / 0.5037 GB, free: 89.22 MB / 378.7 MB Notification: Performance of Templates: time 0.05518/0.6597, allocations: 50.55 MB / 0.553 GB, free: 48.05 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches