Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001153/0.001153, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.342/1.342, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000838/0.0008382, allocations: 86.41 kB / 271.2 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003379/0.0003382, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2369/0.2372, allocations: 47.57 MB / 375.1 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003791/0.2411, allocations: 3.722 MB / 378.8 MB, free: 42.5 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002745/0.2438, allocations: 1.548 MB / 380.4 MB, free: 41.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003434/0.2442, allocations: 11.66 kB / 380.4 MB, free: 41.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002872/0.2445, allocations: 91.5 kB / 380.5 MB, free: 41.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006725/0.2452, allocations: 291.4 kB / 380.7 MB, free: 40.9 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003283/0.2455, allocations: 144 kB / 380.9 MB, free: 40.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000728/0.2463, allocations: 0.8767 MB / 381.8 MB, free: 40.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003247/0.2466, allocations: 208.5 kB / 382 MB, free: 40.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003843/0.247, allocations: 302.8 kB / 382.3 MB, free: 39.97 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003718/0.2474, allocations: 358.2 kB / 382.6 MB, free: 39.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.974e-05/0.2475, allocations: 43.34 kB / 382.7 MB, free: 39.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003262/0.2478, allocations: 157.9 kB / 382.8 MB, free: 39.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.2479, allocations: 136 kB / 382.9 MB, free: 39.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003015/0.2482, allocations: 372.2 kB / 383.3 MB, free: 39.3 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007272/0.249, allocations: 0.8893 MB / 384.2 MB, free: 38.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.249, allocations: 1.062 kB / 384.2 MB, free: 38.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.249, allocations: 0 / 384.2 MB, free: 38.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.249, allocations: 0 / 384.2 MB, free: 38.6 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001969/0.251, allocations: 0.9729 MB / 385.2 MB, free: 37.85 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.251, allocations: 10.16 kB / 385.2 MB, free: 37.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001368/0.2512, allocations: 78.5 kB / 385.3 MB, free: 37.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006015/0.2518, allocations: 0.5119 MB / 385.8 MB, free: 37.36 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.196e-05/0.2519, allocations: 77.11 kB / 385.8 MB, free: 37.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001836/0.252, allocations: 71.7 kB / 385.9 MB, free: 37.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.2531, allocations: 0.604 MB / 386.5 MB, free: 36.89 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.2531, allocations: 8.938 kB / 386.5 MB, free: 36.89 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.475e-05/0.2532, allocations: 20.97 kB / 386.5 MB, free: 36.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.512e-05/0.2532, allocations: 13.81 kB / 386.6 MB, free: 36.87 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001025/0.2542, allocations: 0.5383 MB / 387.1 MB, free: 36.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002761/0.257, allocations: 2.326 MB / 389.4 MB, free: 34.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008051/0.2578, allocations: 489.8 kB / 389.9 MB, free: 33.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004413/0.2583, allocations: 281.9 kB / 390.2 MB, free: 33.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.093e-05/0.2583, allocations: 4 kB / 390.2 MB, free: 33.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.2583, allocations: 46.55 kB / 390.2 MB, free: 33.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 2.164e-06/0.2583, allocations: 0 / 390.2 MB, free: 33.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.01124/0.2696, allocations: 3.701 MB / 393.9 MB, free: 29.5 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.073e-05/0.2696, allocations: 81.67 kB / 394 MB, free: 29.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005558/0.2702, allocations: 0.5409 MB / 394.5 MB, free: 28.86 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.152e-05/0.2703, allocations: 33.7 kB / 394.6 MB, free: 28.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.2704, allocations: 316.3 kB / 394.9 MB, free: 28.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001092/0.2705, allocations: 208.9 kB / 395.1 MB, free: 28.29 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.595e-05/0.2706, allocations: 12 kB / 395.1 MB, free: 28.28 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.718e-05/0.2707, allocations: 366.8 kB / 395.5 MB, free: 27.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004737/0.2711, allocations: 253.2 kB / 395.7 MB, free: 27.67 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004965/0.2716, allocations: 356.4 kB / 396.1 MB, free: 27.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009774/0.2726, allocations: 0.6214 MB / 396.7 MB, free: 26.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.2726, allocations: 4 kB / 396.7 MB, free: 26.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001266/0.2739, allocations: 0.7607 MB / 397.4 MB, free: 25.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.2739, allocations: 8 kB / 397.4 MB, free: 25.85 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.274, allocations: 0 / 397.4 MB, free: 25.85 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001558/0.2741, allocations: 32.97 kB / 397.5 MB, free: 25.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007465/0.2749, allocations: 171.8 kB / 397.6 MB, free: 25.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007081/0.2756, allocations: 1.333 MB / 399 MB, free: 24.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005346/0.2761, allocations: 48.03 kB / 399 MB, free: 24.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.327e-05/0.2762, allocations: 24.12 kB / 399.1 MB, free: 24.11 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * Array equations: 0 * 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 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002357/0.2764, allocations: 205.6 kB / 399.3 MB, free: 23.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.2765, allocations: 59.34 kB / 399.3 MB, free: 23.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001502/0.278, allocations: 0.8647 MB / 400.2 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2781, allocations: 4 kB / 400.2 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.2781, allocations: 4 kB / 400.2 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.2781, allocations: 3.984 kB / 400.2 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003083/0.2812, allocations: 1.886 MB / 402.1 MB, free: 21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2812, allocations: 0 / 402.1 MB, free: 21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004641/0.2817, allocations: 115.8 kB / 402.2 MB, free: 20.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002194/0.2839, allocations: 0.4964 MB / 402.7 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.365e-05/0.2839, allocations: 12 kB / 402.7 MB, free: 20.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004006/0.2879, allocations: 2.955 MB / 405.6 MB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.288, allocations: 4.031 kB / 405.7 MB, free: 17.29 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002521/0.2905, allocations: 1.405 MB / 407.1 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002868/0.2908, allocations: 208.3 kB / 407.3 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.763e-05/0.2909, allocations: 12 kB / 407.3 MB, free: 15.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005543/0.2914, allocations: 47.97 kB / 407.3 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/0.2916, allocations: 48.48 kB / 407.4 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.855e-05/0.2916, allocations: 23.94 kB / 407.4 MB, free: 15.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003808/0.292, allocations: 382.9 kB / 407.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.292, allocations: 3.938 kB / 407.8 MB, free: 15.14 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006887/0.2927, allocations: 192.1 kB / 408 MB, free: 14.95 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * Array equations: 0 * 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: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002468/0.2929, allocations: 147.2 kB / 408.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001258/0.2942, allocations: 0.7486 MB / 408.8 MB, free: 14.04 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2942, allocations: 0 / 408.8 MB, free: 14.04 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00078/0.295, allocations: 0.5291 MB / 409.4 MB, free: 13.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007014/0.2957, allocations: 91.97 kB / 409.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.298, allocations: 1.859 MB / 411.3 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002686/0.2983, allocations: 0.9007 MB / 412.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/0.2985, allocations: 55.41 kB / 412.3 MB, free: 10.53 MB / 298.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2985, allocations: 4 kB / 412.3 MB, free: 10.53 MB / 298.7 MB Notification: Performance of Templates: time 0.01173/0.3103, allocations: 11.67 MB / 424 MB, free: 14.87 MB / 314.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches