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.001682/0.001682, allocations: 193.2 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, 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.0009907/0.0009908, allocations: 98.88 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002911/0.0002911, allocations: 11.94 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2678, allocations: 51.29 MB / 407.5 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.002596/0.2704, allocations: 2.948 MB / 410.4 MB, free: 24.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001855/0.2723, allocations: 1.537 MB / 412 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.2725, allocations: 7.938 kB / 412 MB, free: 23.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001602/0.2741, allocations: 1.715 MB / 413.7 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004113/0.2745, allocations: 171 kB / 413.9 MB, free: 21.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006159/0.2751, allocations: 261.8 kB / 414.1 MB, free: 21.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001114/0.2763, allocations: 1.411 MB / 415.5 MB, free: 19.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.2764, allocations: 103.2 kB / 415.6 MB, free: 19.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002804/0.2767, allocations: 295.1 kB / 415.9 MB, free: 19.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002559/0.277, allocations: 306.9 kB / 416.2 MB, free: 19.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.355e-05/0.2771, allocations: 24 kB / 416.3 MB, free: 19.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001614/0.2772, allocations: 60 kB / 416.3 MB, free: 18.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003682/0.2776, allocations: 0.8337 MB / 417.1 MB, free: 18.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001931/0.2778, allocations: 388.3 kB / 417.5 MB, free: 17.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.2789, allocations: 2.114 MB / 419.6 MB, free: 15.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.2789, allocations: 0 / 419.6 MB, free: 15.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.2789, allocations: 0 / 419.6 MB, free: 15.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.88e-05/0.279, allocations: 0 / 419.6 MB, free: 15.65 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.002825/0.2818, allocations: 2.457 MB / 422.1 MB, free: 13.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.2818, allocations: 8.031 kB / 422.1 MB, free: 13.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004029/0.2823, allocations: 296.3 kB / 422.4 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001958/0.2842, allocations: 1.689 MB / 424.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.225e-05/0.2843, allocations: 58.7 kB / 424.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001633/0.2845, allocations: 51.84 kB / 424.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006115/0.2851, allocations: 398.9 kB / 424.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.2851, allocations: 0 / 424.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.524e-05/0.2852, allocations: 12 kB / 424.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.477e-06/0.2852, allocations: 12 kB / 424.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005753/0.2858, allocations: 335.7 kB / 424.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002912/0.2887, allocations: 2.911 MB / 427.8 MB, free: 7.207 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004932/0.2892, allocations: 318.7 kB / 428.2 MB, free: 6.879 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002573/0.2895, allocations: 171.9 kB / 428.3 MB, free: 6.707 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.155e-05/0.2895, allocations: 4 kB / 428.3 MB, free: 6.703 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.2895, allocations: 38.55 kB / 428.4 MB, free: 6.656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.693e-06/0.2895, allocations: 4 kB / 428.4 MB, free: 6.652 MB / 298.7 MB Notification: Performance of matching and sorting (n=48): time 0.003677/0.2932, allocations: 2.411 MB / 430.8 MB, free: 4.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.769e-05/0.2932, allocations: 89.48 kB / 430.9 MB, free: 4.074 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004536/0.2978, allocations: 5.463 MB / 436.3 MB, free: 14.61 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.219e-05/0.2978, allocations: 37.7 kB / 436.4 MB, free: 14.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009577/0.2988, allocations: 1.179 MB / 437.5 MB, free: 13.38 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.2989, allocations: 169.6 kB / 437.7 MB, free: 13.21 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.002e-05/0.299, allocations: 8 kB / 437.7 MB, free: 13.21 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.25e-05/0.2991, allocations: 330 kB / 438 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002924/0.2994, allocations: 137.1 kB / 438.2 MB, free: 12.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003603/0.2997, allocations: 217.7 kB / 438.4 MB, free: 12.51 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003386/0.3001, allocations: 172.7 kB / 438.6 MB, free: 12.34 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3001, allocations: 0 / 438.6 MB, free: 12.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001012/0.3011, allocations: 0.6917 MB / 439.2 MB, free: 11.63 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.532e-05/0.3011, allocations: 10.03 kB / 439.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.3012, allocations: 0 / 439.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.262e-05/0.3012, allocations: 4 kB / 439.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00048/0.3017, allocations: 124.1 kB / 439.4 MB, free: 11.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.3017, allocations: 7.938 kB / 439.4 MB, free: 11.49 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003715/0.3021, allocations: 19.98 kB / 439.4 MB, free: 11.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.947e-05/0.3021, allocations: 19.94 kB / 439.4 MB, free: 11.45 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.0009368/0.303, allocations: 0.9154 MB / 440.3 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002715/0.3033, allocations: 276.4 kB / 440.6 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.3047, allocations: 0.8021 MB / 441.4 MB, free: 9.438 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.3047, allocations: 4 kB / 441.4 MB, free: 9.434 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.3047, allocations: 3.953 kB / 441.4 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.216e-06/0.3047, allocations: 11.92 kB / 441.4 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001373/0.3061, allocations: 1.473 MB / 442.9 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.3061, allocations: 4 kB / 442.9 MB, free: 7.891 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/0.3066, allocations: 99.88 kB / 443 MB, free: 7.793 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003227/0.3069, allocations: 84.8 kB / 443.1 MB, free: 7.707 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.822e-05/0.3069, allocations: 12 kB / 443.1 MB, free: 7.695 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005009/0.3074, allocations: 0.6421 MB / 443.7 MB, free: 7.027 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.3074, allocations: 0 / 443.7 MB, free: 7.027 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001493/0.3089, allocations: 1.081 MB / 444.8 MB, free: 5.922 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006095/0.3096, allocations: 497.6 kB / 445.3 MB, free: 5.414 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001499/0.3097, allocations: 8 kB / 445.3 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004331/0.3102, allocations: 23.98 kB / 445.3 MB, free: 5.383 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.585e-05/0.3102, allocations: 40.28 kB / 445.4 MB, free: 5.344 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.3103, allocations: 15.98 kB / 445.4 MB, free: 5.328 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.003941/0.3142, allocations: 3.994 MB / 449.4 MB, free: 1.344 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3142, allocations: 0 / 449.4 MB, free: 1.344 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005689/0.3148, allocations: 208 kB / 449.6 MB, free: 1.141 MB / 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.0008539/0.3157, allocations: 424.5 kB / 450 MB, free: 0.8633 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007141/0.3164, allocations: 376.9 kB / 450.4 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3164, allocations: 0 / 450.4 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004191/0.3168, allocations: 218.8 kB / 450.6 MB, free: 288 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009064/0.3177, allocations: 185.7 kB / 450.8 MB, free: 100 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006741/0.3245, allocations: 6.144 MB / 456.9 MB, free: 9.902 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001349/0.3259, allocations: 1.818 MB / 458.7 MB, free: 8.051 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000298/0.3262, allocations: 95.42 kB / 458.8 MB, free: 7.957 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.3262, allocations: 0 / 458.8 MB, free: 7.957 MB / 330.7 MB Notification: Performance of Templates: time 0.05079/0.377, allocations: 35.58 MB / 494.4 MB, free: 4.355 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