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.001651/0.001651, allocations: 111.9 kB / 17.74 MB, free: 5.359 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.00177/0.00177, allocations: 193.5 kB / 18.67 MB, free: 4.434 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.333/1.333, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 51.92 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2874, allocations: 49.43 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005203/0.2927, allocations: 3.395 MB / 404.8 MB, free: 5.465 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002514/0.2952, allocations: 1.453 MB / 406.3 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005986/0.2958, allocations: 4 kB / 406.3 MB, free: 4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003408/0.2993, allocations: 2.667 MB / 408.9 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006874/0.3, allocations: 170.7 kB / 409.1 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007996/0.3009, allocations: 312.3 kB / 409.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00259/0.3035, allocations: 1.79 MB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002855/0.3038, allocations: 135.3 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005171/0.3043, allocations: 309.1 kB / 411.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005131/0.3048, allocations: 330.8 kB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001377/0.305, allocations: 44 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002625/0.3052, allocations: 79.98 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006362/0.3059, allocations: 0.8491 MB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009137/0.3068, allocations: 0.9346 MB / 413.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00228/0.3091, allocations: 2.617 MB / 416.5 MB, free: 9.762 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3091, allocations: 0 / 416.5 MB, free: 9.762 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.3091, allocations: 0 / 416.5 MB, free: 9.762 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.497e-05/0.3092, allocations: 11.94 kB / 416.5 MB, free: 9.75 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.005056/0.3142, allocations: 2.79 MB / 419.3 MB, free: 6.895 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.3143, allocations: 8.031 kB / 419.3 MB, free: 6.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004575/0.3148, allocations: 277.4 kB / 419.5 MB, free: 6.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002634/0.3174, allocations: 1.832 MB / 421.4 MB, free: 4.727 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.758e-05/0.3175, allocations: 59.2 kB / 421.4 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.3177, allocations: 51.92 kB / 421.5 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007394/0.3185, allocations: 395 kB / 421.9 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.3185, allocations: 0 / 421.9 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.13e-05/0.3186, allocations: 16 kB / 421.9 MB, free: 4.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.442e-05/0.3186, allocations: 8 kB / 421.9 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007058/0.3193, allocations: 327.7 kB / 422.2 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004436/0.3237, allocations: 2.899 MB / 425.1 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006397/0.3244, allocations: 320.9 kB / 425.4 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003225/0.3247, allocations: 174.2 kB / 425.6 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.689e-05/0.3248, allocations: 4 kB / 425.6 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.3248, allocations: 50.28 kB / 425.6 MB, free: 300 kB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.354e-06/0.3248, allocations: 0 / 425.6 MB, free: 300 kB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.005286/0.3301, allocations: 2.374 MB / 428 MB, free: 13.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/0.3302, allocations: 85.48 kB / 428.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007377/0.3376, allocations: 5.435 MB / 433.5 MB, free: 8.309 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.179e-05/0.3377, allocations: 37.7 kB / 433.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001146/0.3389, allocations: 1.207 MB / 434.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001844/0.3391, allocations: 169.5 kB / 434.9 MB, free: 6.883 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001583/0.3392, allocations: 86.25 kB / 435 MB, free: 6.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.3394, allocations: 326 kB / 435.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003579/0.3397, allocations: 137.1 kB / 435.5 MB, free: 6.336 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003853/0.3401, allocations: 225.6 kB / 435.7 MB, free: 6.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006979/0.3408, allocations: 380.3 kB / 436.1 MB, free: 5.691 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.3408, allocations: 7.938 kB / 436.1 MB, free: 5.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001353/0.3422, allocations: 0.6839 MB / 436.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3422, allocations: 8 kB / 436.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.3423, allocations: 0 / 436.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.069e-05/0.3423, allocations: 7.984 kB / 436.8 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000517/0.3428, allocations: 119.9 kB / 436.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.416e-05/0.3428, allocations: 7.938 kB / 436.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000588/0.3434, allocations: 16.25 kB / 436.9 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.043e-05/0.3435, allocations: 23.98 kB / 436.9 MB, free: 4.812 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.001112/0.3446, allocations: 0.9153 MB / 437.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004656/0.3451, allocations: 264.5 kB / 438.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00161/0.3467, allocations: 0.8057 MB / 438.9 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-06/0.3467, allocations: 4 kB / 438.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.293e-06/0.3467, allocations: 0 / 438.9 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.976e-06/0.3467, allocations: 3.984 kB / 438.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002061/0.3488, allocations: 1.465 MB / 440.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.3488, allocations: 11.88 kB / 440.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004619/0.3493, allocations: 95.88 kB / 440.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003705/0.3497, allocations: 96.78 kB / 440.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.71e-05/0.3497, allocations: 8 kB / 440.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005378/0.3503, allocations: 0.6304 MB / 441.2 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.3503, allocations: 0 / 441.2 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001837/0.3521, allocations: 1.081 MB / 442.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008119/0.3529, allocations: 497.5 kB / 442.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.3532, allocations: 12 kB / 442.8 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005647/0.3538, allocations: 19.98 kB / 442.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.425e-05/0.3539, allocations: 28.39 kB / 442.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/0.3539, allocations: 16 kB / 442.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005011/0.3589, allocations: 3.974 MB / 446.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.359, allocations: 0 / 446.9 MB, free: 10.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001128/0.3601, allocations: 211.9 kB / 447.1 MB, free: 10.55 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.001063/0.3612, allocations: 430.8 kB / 447.5 MB, free: 10.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009226/0.3621, allocations: 376.9 kB / 447.8 MB, free: 9.91 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.3621, allocations: 0 / 447.8 MB, free: 9.91 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005116/0.3627, allocations: 222.8 kB / 448.1 MB, free: 9.695 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.3641, allocations: 195.8 kB / 448.3 MB, free: 9.508 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00905/0.3731, allocations: 5.577 MB / 453.8 MB, free: 3.883 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002142/0.3753, allocations: 1.818 MB / 455.7 MB, free: 2.031 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005172/0.3759, allocations: 99.41 kB / 455.8 MB, free: 1.934 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3759, allocations: 0 / 455.8 MB, free: 1.934 MB / 366.1 MB Notification: Performance of Templates: time 0.06351/0.4394, allocations: 36.31 MB / 492.1 MB, free: 13.59 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/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