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.001022/0.001022, allocations: 199.5 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.251/1.251, allocations: 226.6 MB / 244.7 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007282/0.0007284, allocations: 101.1 kB / 296.8 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002111/0.0002112, allocations: 4 kB / 356.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1902/0.1904, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.005395/0.1959, allocations: 6.793 MB / 414.8 MB, free: 20.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003508/0.1994, allocations: 2.563 MB / 417.4 MB, free: 18.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006259/0.2, allocations: 59.69 kB / 417.5 MB, free: 18.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007822/0.2008, allocations: 443.5 kB / 417.9 MB, free: 17.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001131/0.202, allocations: 0.6529 MB / 418.6 MB, free: 17.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005023/0.2025, allocations: 271.6 kB / 418.8 MB, free: 16.9 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002042/0.2046, allocations: 3.358 MB / 422.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002404/0.207, allocations: 2.94 MB / 425.1 MB, free: 10.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001799/0.2088, allocations: 1.175 MB / 426.3 MB, free: 9.355 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001579/0.2104, allocations: 1.592 MB / 427.9 MB, free: 7.758 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002761/0.2107, allocations: 191.9 kB / 428.1 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007453/0.2114, allocations: 427.5 kB / 428.5 MB, free: 7.152 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00057/0.212, allocations: 0.9074 MB / 429.4 MB, free: 6.242 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001186/0.2132, allocations: 1.541 MB / 430.9 MB, free: 4.688 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003044/0.2162, allocations: 4.975 MB / 435.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.2163, allocations: 0 / 435.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2163, allocations: 4 kB / 435.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.053e-05/0.2164, allocations: 0 / 435.9 MB, free: 15.7 MB / 314.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.005992/0.2224, allocations: 3.202 MB / 439.1 MB, free: 12.43 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/0.2224, allocations: 8.031 kB / 439.1 MB, free: 12.42 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001425/0.2239, allocations: 436.6 kB / 439.6 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003394/0.2273, allocations: 2.084 MB / 441.6 MB, free: 9.852 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001551/0.2274, allocations: 225.8 kB / 441.9 MB, free: 9.629 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004266/0.2279, allocations: 280 kB / 442.1 MB, free: 9.355 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006897/0.2348, allocations: 4.175 MB / 446.3 MB, free: 5.129 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.967e-05/0.2348, allocations: 7.922 kB / 446.3 MB, free: 5.121 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002571/0.2351, allocations: 120 kB / 446.4 MB, free: 5.004 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001612/0.2353, allocations: 137.9 kB / 446.6 MB, free: 4.867 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005621/0.2409, allocations: 3.478 MB / 450 MB, free: 1.379 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01637/0.2573, allocations: 10.98 MB / 461 MB, free: 6.203 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002706/0.26, allocations: 2.642 MB / 463.7 MB, free: 3.352 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002271/0.2623, allocations: 1.497 MB / 465.2 MB, free: 1.848 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002394/0.2626, allocations: 126 kB / 465.3 MB, free: 1.707 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/0.2626, allocations: 51.56 kB / 465.3 MB, free: 1.648 MB / 330.7 MB Notification: Performance of pre-optimization done (n=128): time 3.457e-06/0.2626, allocations: 0 / 465.3 MB, free: 1.648 MB / 330.7 MB Notification: Performance of matching and sorting (n=133): time 0.008546/0.2712, allocations: 5.187 MB / 470.5 MB, free: 12.4 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.066e-05/0.2712, allocations: 94.36 kB / 470.6 MB, free: 12.29 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00249/0.2737, allocations: 1.902 MB / 472.5 MB, free: 10.39 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.46e-05/0.2738, allocations: 49.7 kB / 472.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008746/0.2747, allocations: 1.314 MB / 473.9 MB, free: 9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003471/0.2751, allocations: 465.3 kB / 474.3 MB, free: 8.539 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.36e-05/0.2752, allocations: 24 kB / 474.4 MB, free: 8.516 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.2753, allocations: 373.8 kB / 474.7 MB, free: 8.145 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00126/0.2766, allocations: 0.8198 MB / 475.5 MB, free: 7.324 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001482/0.2781, allocations: 1.178 MB / 476.7 MB, free: 6 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002749/0.2808, allocations: 2.078 MB / 478.8 MB, free: 3.781 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.2809, allocations: 4 kB / 478.8 MB, free: 3.777 MB / 346.7 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.004087/0.285, allocations: 2.523 MB / 481.3 MB, free: 1.242 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.285, allocations: 12 kB / 481.3 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.285, allocations: 8 kB / 481.3 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00188/0.2869, allocations: 491.1 kB / 481.8 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001284/0.2882, allocations: 331.5 kB / 482.2 MB, free: 428 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004984/0.2932, allocations: 4.055 MB / 486.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001212/0.2944, allocations: 83.83 kB / 486.3 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/0.2946, allocations: 63.98 kB / 486.3 MB, free: 12.09 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.00168/0.2963, allocations: 1.048 MB / 487.4 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003654/0.2966, allocations: 193.7 kB / 487.6 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003483/0.3001, allocations: 2.149 MB / 489.7 MB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.587e-05/0.3002, allocations: 16 kB / 489.8 MB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.3002, allocations: 8 kB / 489.8 MB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.3002, allocations: 11.97 kB / 489.8 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007986/0.3082, allocations: 5.206 MB / 495 MB, free: 3.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.3082, allocations: 4 kB / 495 MB, free: 3.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009711/0.3092, allocations: 231.9 kB / 495.2 MB, free: 3.109 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001783/0.311, allocations: 460.6 kB / 495.7 MB, free: 2.656 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-05/0.3111, allocations: 31.98 kB / 495.7 MB, free: 2.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004808/0.3159, allocations: 3.956 MB / 499.6 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.3159, allocations: 3.938 kB / 499.6 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00489/0.3208, allocations: 3.257 MB / 0.4911 GB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009122/0.3218, allocations: 466.6 kB / 0.4916 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002305/0.322, allocations: 35.98 kB / 0.4916 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009258/0.3229, allocations: 99.97 kB / 0.4917 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000211/0.3232, allocations: 92.86 kB / 0.4918 GB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.976e-05/0.3232, allocations: 43.98 kB / 0.4918 GB, free: 10.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001936/0.3252, allocations: 1.326 MB / 0.4931 GB, free: 9.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3252, allocations: 0 / 0.4931 GB, free: 9.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001638/0.3268, allocations: 0.5547 MB / 0.4937 GB, free: 8.605 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.000541/0.3274, allocations: 232.9 kB / 0.4939 GB, free: 8.379 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00346/0.3309, allocations: 2.203 MB / 0.496 GB, free: 6.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3309, allocations: 0 / 0.496 GB, free: 6.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001882/0.3328, allocations: 1.211 MB / 0.4972 GB, free: 4.938 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002493/0.3353, allocations: 495.9 kB / 0.4977 GB, free: 4.465 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1619/0.4972, allocations: 6.73 MB / 0.5043 GB, free: 89.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001867/0.4991, allocations: 2.363 MB / 0.5066 GB, free: 88.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006563/0.4998, allocations: 144.2 kB / 0.5067 GB, free: 88.52 MB / 378.7 MB Notification: Performance of SimCode: time 6.32e-07/0.4998, allocations: 0 / 0.5067 GB, free: 88.52 MB / 378.7 MB Notification: Performance of Templates: time 0.04772/0.5475, allocations: 50.52 MB / 0.556 GB, free: 45.45 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