Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001652/0.001652, allocations: 196.1 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.458/1.458, allocations: 226.6 MB / 244.7 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007786/0.0007785, allocations: 105.2 kB / 296.8 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002285/0.0002286, allocations: 4 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2508, allocations: 51.3 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.002731/0.2536, allocations: 2.956 MB / 411 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001902/0.2555, allocations: 1.538 MB / 412.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000201/0.2558, allocations: 4 kB / 412.6 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001654/0.2574, allocations: 1.708 MB / 414.3 MB, free: 21.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005054/0.258, allocations: 179 kB / 414.4 MB, free: 21.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007106/0.2587, allocations: 254.9 kB / 414.7 MB, free: 21.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001081/0.2598, allocations: 1.419 MB / 416.1 MB, free: 19.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.26, allocations: 116.6 kB / 416.2 MB, free: 19.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002989/0.2603, allocations: 295.1 kB / 416.5 MB, free: 19.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002826/0.2606, allocations: 307 kB / 416.8 MB, free: 18.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.702e-05/0.2606, allocations: 27.94 kB / 416.8 MB, free: 18.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.2608, allocations: 59.98 kB / 416.9 MB, free: 18.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004028/0.2612, allocations: 0.8298 MB / 417.7 MB, free: 18.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004466/0.2617, allocations: 0.859 MB / 418.6 MB, free: 17.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001175/0.2629, allocations: 2.11 MB / 420.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.2629, allocations: 7.922 kB / 420.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.2629, allocations: 0 / 420.7 MB, free: 15.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.822e-05/0.2629, allocations: 0 / 420.7 MB, free: 15.05 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.0026/0.2655, allocations: 2.423 MB / 423.1 MB, free: 12.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.2656, allocations: 8.031 kB / 423.1 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003313/0.2659, allocations: 297.3 kB / 423.4 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.2677, allocations: 1.824 MB / 425.2 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.295e-05/0.2677, allocations: 63.2 kB / 425.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001438/0.2679, allocations: 47.92 kB / 425.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005749/0.2685, allocations: 395 kB / 425.7 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.2685, allocations: 4 kB / 425.7 MB, free: 9.863 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.248e-05/0.2685, allocations: 12 kB / 425.8 MB, free: 9.852 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2686, allocations: 8 kB / 425.8 MB, free: 9.844 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005822/0.2691, allocations: 335.7 kB / 426.1 MB, free: 9.516 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002955/0.2721, allocations: 2.919 MB / 429 MB, free: 6.496 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005046/0.2726, allocations: 322.6 kB / 429.3 MB, free: 6.164 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002613/0.2729, allocations: 161.6 kB / 429.5 MB, free: 6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.2729, allocations: 8 kB / 429.5 MB, free: 5.992 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/0.273, allocations: 38.5 kB / 429.5 MB, free: 5.945 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 2.204e-06/0.273, allocations: 0 / 429.5 MB, free: 5.945 MB / 298.7 MB Notification: Performance of matching and sorting (n=48): time 0.003777/0.2768, allocations: 2.418 MB / 431.9 MB, free: 3.461 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.2768, allocations: 85.55 kB / 432 MB, free: 3.359 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004963/0.2818, allocations: 5.459 MB / 437.5 MB, free: 13.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.008e-05/0.2818, allocations: 37.7 kB / 437.5 MB, free: 13.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009869/0.2828, allocations: 1.183 MB / 438.7 MB, free: 12.67 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.283, allocations: 161.6 kB / 438.9 MB, free: 12.51 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.597e-05/0.283, allocations: 12 kB / 438.9 MB, free: 12.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.2831, allocations: 334 kB / 439.2 MB, free: 12.16 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003149/0.2834, allocations: 133.1 kB / 439.3 MB, free: 12.03 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003421/0.2838, allocations: 221.7 kB / 439.5 MB, free: 11.79 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006501/0.2844, allocations: 380.3 kB / 439.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.2845, allocations: 3.938 kB / 439.9 MB, free: 11.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001052/0.2855, allocations: 0.6879 MB / 440.6 MB, free: 10.69 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.2855, allocations: 7.938 kB / 440.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.2856, allocations: 4 kB / 440.6 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.2856, allocations: 8 kB / 440.6 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004873/0.2861, allocations: 115.9 kB / 440.7 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.2861, allocations: 11.94 kB / 440.8 MB, free: 10.55 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004115/0.2865, allocations: 28.12 kB / 440.8 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.958e-05/0.2866, allocations: 20 kB / 440.8 MB, free: 10.5 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009425/0.2875, allocations: 0.9191 MB / 441.7 MB, free: 9.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002681/0.2878, allocations: 264.5 kB / 442 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001368/0.2892, allocations: 0.8059 MB / 442.8 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.2892, allocations: 4 kB / 442.8 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.2892, allocations: 0 / 442.8 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.2892, allocations: 7.922 kB / 442.8 MB, free: 8.477 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001525/0.2907, allocations: 1.477 MB / 444.3 MB, free: 6.949 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.2907, allocations: 3.938 kB / 444.3 MB, free: 6.945 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004304/0.2912, allocations: 103.9 kB / 444.4 MB, free: 6.844 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003388/0.2915, allocations: 92.84 kB / 444.5 MB, free: 6.75 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.912e-05/0.2916, allocations: 8 kB / 444.5 MB, free: 6.742 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005135/0.2921, allocations: 0.6382 MB / 445.1 MB, free: 6.078 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.2921, allocations: 0 / 445.1 MB, free: 6.078 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001537/0.2936, allocations: 1.089 MB / 446.2 MB, free: 4.965 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006589/0.2943, allocations: 497.6 kB / 446.7 MB, free: 4.457 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001482/0.2945, allocations: 8 kB / 446.7 MB, free: 4.449 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004261/0.2949, allocations: 19.98 kB / 446.7 MB, free: 4.43 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.356e-05/0.295, allocations: 32.39 kB / 446.7 MB, free: 4.398 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.783e-05/0.295, allocations: 20.11 kB / 446.8 MB, free: 4.379 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.004272/0.2993, allocations: 3.994 MB / 450.8 MB, free: 404 kB / 314.7 MB Notification: Performance of sort global known variables: time 1.393e-06/0.2993, allocations: 0 / 450.8 MB, free: 404 kB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006677/0.3, allocations: 207.9 kB / 451 MB, free: 196 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008442/0.3008, allocations: 416 kB / 451.4 MB, free: 15.92 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007457/0.3016, allocations: 384.8 kB / 451.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3016, allocations: 0 / 451.7 MB, free: 15.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004247/0.3021, allocations: 214.3 kB / 452 MB, free: 15.33 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.3032, allocations: 187 kB / 452.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007647/0.3108, allocations: 6.14 MB / 458.3 MB, free: 8.957 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001489/0.3124, allocations: 1.822 MB / 460.1 MB, free: 7.102 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004697/0.3128, allocations: 95.42 kB / 460.2 MB, free: 7.008 MB / 330.7 MB Notification: Performance of SimCode: time 7.11e-07/0.3129, allocations: 0 / 460.2 MB, free: 7.008 MB / 330.7 MB Notification: Performance of Templates: time 0.06046/0.3733, allocations: 35.49 MB / 495.7 MB, free: 3.508 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches