Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009509/0.0009509, allocations: 192.1 kB / 17.43 MB, free: 4.281 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008046/0.0008049, allocations: 95.81 kB / 299.9 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002308/0.0002309, allocations: 8 kB / 360.6 MB, free: 8.457 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.1996, allocations: 51.41 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench): time 0.005332/0.205, allocations: 6.824 MB / 418.9 MB, free: 19.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004514/0.2095, allocations: 3.195 MB / 422.1 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009049/0.2105, allocations: 63.69 kB / 422.1 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009031/0.2114, allocations: 486.7 kB / 422.6 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001341/0.2128, allocations: 0.6763 MB / 423.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006049/0.2134, allocations: 371.6 kB / 423.6 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002207/0.2156, allocations: 3.678 MB / 427.3 MB, free: 10.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002387/0.218, allocations: 2.924 MB / 430.3 MB, free: 7.445 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00233/0.2203, allocations: 1.229 MB / 431.5 MB, free: 6.215 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00145/0.2218, allocations: 1.642 MB / 433.1 MB, free: 4.566 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002752/0.2221, allocations: 188 kB / 433.3 MB, free: 4.383 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007539/0.2228, allocations: 427.5 kB / 433.7 MB, free: 3.965 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005823/0.2234, allocations: 0.9071 MB / 434.6 MB, free: 3.055 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001165/0.2246, allocations: 1.614 MB / 436.2 MB, free: 1.426 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004518/0.2291, allocations: 5.731 MB / 442 MB, free: 11.68 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2292, allocations: 0 / 442 MB, free: 11.68 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2292, allocations: 0 / 442 MB, free: 11.68 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001044/0.2293, allocations: 0 / 442 MB, free: 11.68 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.005802/0.2351, allocations: 3.198 MB / 445.2 MB, free: 8.414 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.2351, allocations: 12.03 kB / 445.2 MB, free: 8.402 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001277/0.2364, allocations: 436.6 kB / 445.6 MB, free: 7.973 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003072/0.2395, allocations: 2.084 MB / 447.7 MB, free: 5.832 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.2397, allocations: 225.7 kB / 447.9 MB, free: 5.609 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004128/0.2401, allocations: 284 kB / 448.2 MB, free: 5.332 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006713/0.2468, allocations: 4.179 MB / 452.4 MB, free: 1.102 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.639e-05/0.2469, allocations: 0 / 452.4 MB, free: 1.102 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003643/0.2473, allocations: 116 kB / 452.5 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001482/0.2474, allocations: 137.9 kB / 452.6 MB, free: 0.8516 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005639/0.2531, allocations: 3.482 MB / 456.1 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01844/0.2715, allocations: 11 MB / 467.1 MB, free: 2.168 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002794/0.2744, allocations: 2.634 MB / 469.7 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002258/0.2767, allocations: 1.501 MB / 471.2 MB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002352/0.2769, allocations: 118.1 kB / 471.3 MB, free: 13.68 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.277, allocations: 55.5 kB / 471.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of pre-optimization done (n=128): time 3.556e-06/0.277, allocations: 0 / 471.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of matching and sorting (n=133): time 0.008483/0.2855, allocations: 5.183 MB / 476.6 MB, free: 8.375 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.2855, allocations: 94.42 kB / 476.7 MB, free: 8.266 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002463/0.288, allocations: 1.898 MB / 478.6 MB, free: 6.363 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.206e-05/0.2881, allocations: 49.7 kB / 478.6 MB, free: 6.309 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008579/0.289, allocations: 1.314 MB / 479.9 MB, free: 4.977 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003208/0.2893, allocations: 465.3 kB / 480.4 MB, free: 4.516 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.528e-05/0.2894, allocations: 28 kB / 480.4 MB, free: 4.488 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.2895, allocations: 369.9 kB / 480.8 MB, free: 4.121 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.2907, allocations: 0.8198 MB / 481.6 MB, free: 3.301 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.2921, allocations: 1.175 MB / 482.8 MB, free: 1.98 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002624/0.2947, allocations: 2.086 MB / 484.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/0.2948, allocations: 4 kB / 484.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=189) (initialization): time 0.003849/0.2986, allocations: 2.515 MB / 487.4 MB, free: 13.22 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.2987, allocations: 12 kB / 487.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.2987, allocations: 8 kB / 487.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001884/0.3006, allocations: 479.8 kB / 487.9 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.3018, allocations: 339.5 kB / 488.2 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004579/0.3064, allocations: 4.062 MB / 492.3 MB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.3076, allocations: 83.91 kB / 492.3 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.3078, allocations: 63.98 kB / 492.4 MB, free: 8.07 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 (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.001664/0.3094, allocations: 1.048 MB / 493.5 MB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004013/0.3099, allocations: 193.6 kB / 493.6 MB, free: 6.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003379/0.3132, allocations: 2.145 MB / 495.8 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.29e-05/0.3133, allocations: 16 kB / 495.8 MB, free: 4.641 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.3133, allocations: 4 kB / 495.8 MB, free: 4.637 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.3133, allocations: 7.969 kB / 495.8 MB, free: 4.629 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008338/0.3217, allocations: 5.21 MB / 0.4893 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.3217, allocations: 4 kB / 0.4893 GB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009709/0.3227, allocations: 239.8 kB / 0.4895 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0018/0.3245, allocations: 464.1 kB / 0.49 GB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.944e-05/0.3246, allocations: 27.98 kB / 0.49 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004687/0.3293, allocations: 3.962 MB / 0.4939 GB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3293, allocations: 0 / 0.4939 GB, free: 10.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004731/0.3341, allocations: 3.253 MB / 0.497 GB, free: 7.211 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008297/0.3349, allocations: 466.6 kB / 0.4975 GB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002297/0.3351, allocations: 35.98 kB / 0.4975 GB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009822/0.3361, allocations: 104 kB / 0.4976 GB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.3364, allocations: 100.8 kB / 0.4977 GB, free: 6.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-05/0.3365, allocations: 39.98 kB / 0.4977 GB, free: 6.461 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001838/0.3383, allocations: 1.326 MB / 0.499 GB, free: 5.141 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3383, allocations: 0 / 0.499 GB, free: 5.141 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00151/0.3398, allocations: 0.5508 MB / 0.4996 GB, free: 4.59 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 (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.0005226/0.3404, allocations: 230.6 kB / 0.4998 GB, free: 4.363 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003325/0.3437, allocations: 2.2 MB / 0.5019 GB, free: 2.148 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3437, allocations: 0 / 0.5019 GB, free: 2.148 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/0.3457, allocations: 1.21 MB / 0.5031 GB, free: 0.9258 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002434/0.3481, allocations: 0.4921 MB / 0.5036 GB, free: 444 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1651/0.5132, allocations: 7.055 MB / 0.5105 GB, free: 87.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001715/0.515, allocations: 2.427 MB / 0.5129 GB, free: 86.37 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001721/0.5167, allocations: 495.1 kB / 0.5133 GB, free: 86.31 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00045/0.5172, allocations: 128.1 kB / 0.5135 GB, free: 86.3 MB / 378.7 MB Notification: Performance of SimCode: time 8.12e-07/0.5172, allocations: 4 kB / 0.5135 GB, free: 86.29 MB / 378.7 MB Notification: Performance of Templates: time 0.04128/0.5585, allocations: 28.66 MB / 0.5415 GB, free: 62.18 MB / 378.7 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