Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001652/0.001652, allocations: 115.6 kB / 18.46 MB, free: 4.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002033/0.002033, allocations: 202.7 kB / 19.41 MB, free: 3.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.413/1.413, allocations: 227.7 MB / 247.9 MB, free: 10.21 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 67.88 kB / 359.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2337, allocations: 50.54 MB / 410.2 MB, free: 1.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005204/0.2389, allocations: 3.45 MB / 413.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00283/0.2417, allocations: 1.66 MB / 415.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001874/0.2419, allocations: 4 kB / 415.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003209/0.2451, allocations: 2.667 MB / 418 MB, free: 9.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005689/0.2457, allocations: 226.5 kB / 418.2 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007649/0.2464, allocations: 317.8 kB / 418.5 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001951/0.2484, allocations: 1.817 MB / 420.3 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002079/0.2486, allocations: 95.97 kB / 420.4 MB, free: 7.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004343/0.249, allocations: 325 kB / 420.7 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004413/0.2495, allocations: 330.8 kB / 421.1 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.305e-05/0.2495, allocations: 44 kB / 421.1 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001926/0.2497, allocations: 87.98 kB / 421.2 MB, free: 6.387 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007229/0.2505, allocations: 0.853 MB / 422 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007724/0.2512, allocations: 0.9462 MB / 423 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002693/0.2539, allocations: 2.645 MB / 425.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2539, allocations: 0 / 425.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2539, allocations: 0 / 425.6 MB, free: 1.926 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.313e-05/0.254, allocations: 0 / 425.6 MB, free: 1.926 MB / 334.1 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.004602/0.2586, allocations: 2.915 MB / 428.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.2586, allocations: 11.97 kB / 428.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005138/0.2591, allocations: 310.9 kB / 428.9 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002859/0.262, allocations: 1.858 MB / 430.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.574e-05/0.262, allocations: 63.2 kB / 430.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001796/0.2622, allocations: 51.92 kB / 430.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008111/0.263, allocations: 387 kB / 431.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.2631, allocations: 3.938 kB / 431.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.835e-05/0.2631, allocations: 16 kB / 431.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.2631, allocations: 11.98 kB / 431.2 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007322/0.2638, allocations: 331.7 kB / 431.6 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004482/0.2683, allocations: 2.904 MB / 434.5 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006465/0.269, allocations: 305.1 kB / 434.8 MB, free: 8.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003619/0.2693, allocations: 153.6 kB / 434.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.684e-05/0.2694, allocations: 15.92 kB / 434.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.2694, allocations: 43.08 kB / 435 MB, free: 8.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.244e-06/0.2694, allocations: 4 kB / 435 MB, free: 8.301 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.005194/0.2746, allocations: 2.476 MB / 437.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.833e-05/0.2747, allocations: 81.55 kB / 437.5 MB, free: 5.668 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007054/0.2817, allocations: 5.455 MB / 443 MB, free: 216 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.439e-05/0.2818, allocations: 29.7 kB / 443 MB, free: 180 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001259/0.2831, allocations: 1.192 MB / 444.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.2833, allocations: 170.5 kB / 444.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.2834, allocations: 90.2 kB / 444.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.2836, allocations: 326 kB / 444.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003489/0.2839, allocations: 141.1 kB / 444.9 MB, free: 14.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003923/0.2843, allocations: 221.6 kB / 445.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00073/0.285, allocations: 388.3 kB / 445.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.449e-06/0.285, allocations: 3.938 kB / 445.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001308/0.2864, allocations: 0.6933 MB / 446.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.2864, allocations: 4 kB / 446.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.2864, allocations: 4.25 kB / 446.2 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.2864, allocations: 8 kB / 446.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000515/0.2869, allocations: 127.8 kB / 446.4 MB, free: 12.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.2869, allocations: 4 kB / 446.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004383/0.2874, allocations: 16 kB / 446.4 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-05/0.2874, allocations: 19.98 kB / 446.4 MB, free: 12.72 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001124/0.2885, allocations: 0.9269 MB / 447.3 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003391/0.2889, allocations: 290 kB / 447.6 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.2903, allocations: 0.7943 MB / 448.4 MB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.103e-06/0.2904, allocations: 4 kB / 448.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.2904, allocations: 4 kB / 448.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.2904, allocations: 3.984 kB / 448.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.2921, allocations: 1.477 MB / 449.9 MB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.2921, allocations: 7.938 kB / 449.9 MB, free: 9.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004453/0.2926, allocations: 91.89 kB / 450 MB, free: 9.051 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003551/0.2929, allocations: 92.78 kB / 450.1 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.293, allocations: 12 kB / 450.1 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006383/0.2936, allocations: 0.6421 MB / 450.7 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2936, allocations: 0 / 450.7 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001827/0.2954, allocations: 1.102 MB / 451.8 MB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009289/0.2964, allocations: 0.4952 MB / 452.3 MB, free: 6.637 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001605/0.2965, allocations: 12 kB / 452.3 MB, free: 6.625 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004507/0.297, allocations: 19.98 kB / 452.4 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.426e-05/0.297, allocations: 24.41 kB / 452.4 MB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-05/0.2971, allocations: 15.98 kB / 452.4 MB, free: 6.566 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00512/0.3022, allocations: 3.994 MB / 456.4 MB, free: 2.582 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3022, allocations: 0 / 456.4 MB, free: 2.582 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008888/0.3031, allocations: 200 kB / 456.6 MB, free: 2.387 MB / 366.1 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 (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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0015/0.3046, allocations: 418.9 kB / 457 MB, free: 2.129 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008725/0.3055, allocations: 368.8 kB / 457.4 MB, free: 1.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3055, allocations: 0 / 457.4 MB, free: 1.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004604/0.3059, allocations: 194.4 kB / 457.6 MB, free: 1.582 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001091/0.307, allocations: 192 kB / 457.7 MB, free: 1.395 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007818/0.3148, allocations: 5.504 MB / 463.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001778/0.3166, allocations: 1.821 MB / 465.1 MB, free: 9.988 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006581/0.3173, allocations: 271.8 kB / 465.3 MB, free: 9.719 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002628/0.3175, allocations: 91.42 kB / 465.4 MB, free: 9.629 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3175, allocations: 0 / 465.4 MB, free: 9.629 MB / 382.1 MB Notification: Performance of Templates: time 0.03314/0.3507, allocations: 15.63 MB / 481 MB, free: 10.05 MB / 398.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches