Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 111.5 kB / 17.06 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009185/0.0009185, allocations: 51.86 kB / 351.3 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2556/0.2565, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004472/0.261, allocations: 3.397 MB / 404.1 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002254/0.2633, allocations: 1.442 MB / 405.6 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000182/0.2635, allocations: 8 kB / 405.6 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002814/0.2663, allocations: 2.663 MB / 408.2 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004312/0.2668, allocations: 174.7 kB / 408.4 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007485/0.2675, allocations: 310.6 kB / 408.7 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001652/0.2692, allocations: 1.794 MB / 410.5 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002346/0.2694, allocations: 139.3 kB / 410.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000369/0.2698, allocations: 313 kB / 410.9 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003703/0.2702, allocations: 326.8 kB / 411.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.238e-05/0.2703, allocations: 44 kB / 411.3 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.2705, allocations: 87.97 kB / 411.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006026/0.2711, allocations: 0.8452 MB / 412.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006808/0.2718, allocations: 0.9307 MB / 413.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002169/0.2739, allocations: 2.617 MB / 415.8 MB, free: 9.773 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.274, allocations: 3.938 kB / 415.8 MB, free: 9.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.274, allocations: 4 kB / 415.8 MB, free: 9.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.272e-05/0.274, allocations: 4 kB / 415.8 MB, free: 9.762 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.003681/0.2777, allocations: 2.798 MB / 418.6 MB, free: 6.898 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.2777, allocations: 8.031 kB / 418.6 MB, free: 6.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003129/0.278, allocations: 277.4 kB / 418.9 MB, free: 6.617 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002299/0.2804, allocations: 1.824 MB / 420.7 MB, free: 4.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.206e-05/0.2804, allocations: 55.27 kB / 420.8 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001736/0.2806, allocations: 51.92 kB / 420.8 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007744/0.2814, allocations: 399 kB / 421.2 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.2814, allocations: 0 / 421.2 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.2815, allocations: 12 kB / 421.2 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.2815, allocations: 11.94 kB / 421.2 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007236/0.2822, allocations: 327.8 kB / 421.5 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003848/0.2861, allocations: 2.903 MB / 424.4 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006351/0.2867, allocations: 319.2 kB / 424.7 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003267/0.2871, allocations: 170.2 kB / 424.9 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.184e-05/0.2871, allocations: 4 kB / 424.9 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.2871, allocations: 50.28 kB / 425 MB, free: 316 kB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 1.854e-06/0.2872, allocations: 0 / 425 MB, free: 316 kB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.004801/0.292, allocations: 2.381 MB / 427.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/0.292, allocations: 81.55 kB / 427.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005696/0.2977, allocations: 5.439 MB / 432.9 MB, free: 8.316 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.2978, allocations: 33.7 kB / 432.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001061/0.2988, allocations: 1.211 MB / 434.1 MB, free: 7.059 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.299, allocations: 165.5 kB / 434.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.2991, allocations: 90.25 kB / 434.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.2992, allocations: 326 kB / 434.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003325/0.2996, allocations: 137.1 kB / 434.8 MB, free: 6.344 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003859/0.3, allocations: 225.6 kB / 435 MB, free: 6.098 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000705/0.3007, allocations: 384.3 kB / 435.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3007, allocations: 3.938 kB / 435.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001121/0.3018, allocations: 0.68 MB / 436.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.3018, allocations: 8 kB / 436.1 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.3019, allocations: 7.922 kB / 436.1 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.3019, allocations: 4 kB / 436.1 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005223/0.3024, allocations: 120.1 kB / 436.2 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.3024, allocations: 11.94 kB / 436.2 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004016/0.3028, allocations: 12 kB / 436.3 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.422e-05/0.3029, allocations: 23.98 kB / 436.3 MB, free: 4.82 MB / 350.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.0009402/0.3038, allocations: 0.9192 MB / 437.2 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003102/0.3042, allocations: 268.5 kB / 437.5 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001412/0.3056, allocations: 0.798 MB / 438.3 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.3056, allocations: 4 kB / 438.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3056, allocations: 0 / 438.3 MB, free: 2.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.3056, allocations: 3.984 kB / 438.3 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.3072, allocations: 1.469 MB / 439.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.3072, allocations: 3.938 kB / 439.7 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/0.3077, allocations: 95.88 kB / 439.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003505/0.308, allocations: 88.78 kB / 439.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.968e-05/0.3081, allocations: 12 kB / 439.9 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005698/0.3086, allocations: 0.6304 MB / 440.6 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3086, allocations: 4.062 kB / 440.6 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.3103, allocations: 1.081 MB / 441.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006529/0.311, allocations: 497.5 kB / 442.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.3112, allocations: 12 kB / 442.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004861/0.3117, allocations: 15.98 kB / 442.2 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.814e-05/0.3117, allocations: 32.33 kB / 442.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-05/0.3118, allocations: 16 kB / 442.2 MB, free: 14.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004399/0.3162, allocations: 3.974 MB / 446.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3162, allocations: 0 / 446.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006636/0.3169, allocations: 211.9 kB / 446.4 MB, free: 10.56 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.0009342/0.3178, allocations: 434.1 kB / 446.8 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008205/0.3186, allocations: 385.2 kB / 447.2 MB, free: 9.914 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3186, allocations: 4.062 kB / 447.2 MB, free: 9.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004681/0.3191, allocations: 214.4 kB / 447.4 MB, free: 9.703 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001037/0.3202, allocations: 183.3 kB / 447.6 MB, free: 9.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006669/0.3268, allocations: 5.4 MB / 453 MB, free: 4.078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001531/0.3284, allocations: 1.818 MB / 454.8 MB, free: 2.227 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000505/0.3289, allocations: 267.6 kB / 455.1 MB, free: 1.961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002529/0.3292, allocations: 91.42 kB / 455.1 MB, free: 1.871 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3292, allocations: 3.938 kB / 455.1 MB, free: 1.867 MB / 366.1 MB Notification: Performance of Templates: time 0.02906/0.3582, allocations: 15.46 MB / 470.6 MB, free: 2.457 MB / 382.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches