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.001277/0.001277, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.00124/0.00124, allocations: 190.9 kB / 18.62 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.412/1.412, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 52.09 kB / 302.1 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1087, allocations: 49.44 MB / 351.5 MB, free: 3.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005432/0.1142, allocations: 3.389 MB / 354.9 MB, free: 268 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002347/0.1166, allocations: 1.454 MB / 356.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001808/0.1168, allocations: 7.938 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002693/0.1195, allocations: 2.659 MB / 359 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004431/0.12, allocations: 170.7 kB / 359.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007132/0.1207, allocations: 305.2 kB / 359.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001666/0.1224, allocations: 1.798 MB / 361.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001864/0.1226, allocations: 135.2 kB / 361.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003093/0.1229, allocations: 313 kB / 361.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003326/0.1232, allocations: 334.7 kB / 362 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.357e-05/0.1233, allocations: 44 kB / 362.1 MB, free: 9.051 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001543/0.1235, allocations: 83.98 kB / 362.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00059/0.1241, allocations: 0.8453 MB / 363 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006944/0.1248, allocations: 0.9307 MB / 363.9 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001952/0.1267, allocations: 2.612 MB / 366.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.1268, allocations: 0 / 366.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.1268, allocations: 4 kB / 366.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.016e-05/0.1268, allocations: 0 / 366.6 MB, free: 4.559 MB / 302.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.003704/0.1305, allocations: 2.802 MB / 369.4 MB, free: 1.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.1305, allocations: 12.03 kB / 369.4 MB, free: 1.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000305/0.1309, allocations: 281.3 kB / 369.6 MB, free: 1.402 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1907/0.3216, allocations: 1.818 MB / 371.5 MB, free: 24.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001169/0.3217, allocations: 59.69 kB / 371.5 MB, free: 24.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002625/0.322, allocations: 46.86 kB / 371.6 MB, free: 24.44 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009863/0.323, allocations: 392.9 kB / 371.9 MB, free: 24.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.3231, allocations: 0 / 371.9 MB, free: 24.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-05/0.3231, allocations: 20.59 kB / 372 MB, free: 24.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.396e-05/0.3231, allocations: 8.031 kB / 372 MB, free: 24.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008922/0.324, allocations: 335 kB / 372.3 MB, free: 24.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00637/0.3304, allocations: 2.902 MB / 375.2 MB, free: 22.76 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007264/0.3312, allocations: 316.8 kB / 375.5 MB, free: 22.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003309/0.3315, allocations: 164.8 kB / 375.7 MB, free: 22.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.467e-05/0.3316, allocations: 7.188 kB / 375.7 MB, free: 22.54 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.3316, allocations: 41.95 kB / 375.7 MB, free: 22.49 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.525e-06/0.3316, allocations: 0 / 375.7 MB, free: 22.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.004812/0.3364, allocations: 2.391 MB / 378.1 MB, free: 21.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.773e-05/0.3365, allocations: 83.91 kB / 378.2 MB, free: 21.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007226/0.3437, allocations: 5.425 MB / 383.6 MB, free: 19.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.227e-05/0.3438, allocations: 33 kB / 383.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009951/0.3448, allocations: 1.209 MB / 384.9 MB, free: 18.39 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000136/0.345, allocations: 170 kB / 385 MB, free: 18.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.3451, allocations: 85.28 kB / 385.1 MB, free: 18.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.956e-05/0.3452, allocations: 333.4 kB / 385.4 MB, free: 17.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003234/0.3455, allocations: 136.7 kB / 385.6 MB, free: 17.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003502/0.3459, allocations: 228.7 kB / 385.8 MB, free: 17.71 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006486/0.3465, allocations: 380.8 kB / 386.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.3465, allocations: 1.781 kB / 386.2 MB, free: 17.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0013/0.3478, allocations: 0.6812 MB / 386.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.883e-05/0.3479, allocations: 9.812 kB / 386.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.3479, allocations: 3.406 kB / 386.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.3479, allocations: 7.812 kB / 386.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005129/0.3485, allocations: 117.7 kB / 387 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.349e-05/0.3485, allocations: 9.844 kB / 387 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004823/0.349, allocations: 16.23 kB / 387 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.431e-05/0.349, allocations: 20.91 kB / 387 MB, free: 17.14 MB / 302.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.001009/0.35, allocations: 0.9214 MB / 388 MB, free: 16.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003289/0.3504, allocations: 271.5 kB / 388.2 MB, free: 16.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001384/0.3517, allocations: 0.7961 MB / 389 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.244e-06/0.3518, allocations: 5.531 kB / 389 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.3518, allocations: 5.188 kB / 389 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3518, allocations: 4.719 kB / 389 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.3534, allocations: 1.468 MB / 390.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.317e-06/0.3535, allocations: 3 kB / 390.5 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004287/0.3539, allocations: 98.03 kB / 390.6 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003035/0.3542, allocations: 83.58 kB / 390.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.782e-05/0.3542, allocations: 15.98 kB / 390.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004058/0.3547, allocations: 0.6459 MB / 391.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3547, allocations: 2.219 kB / 391.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.3561, allocations: 1.075 MB / 392.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008254/0.3569, allocations: 488.9 kB / 392.9 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001693/0.3571, allocations: 15.56 kB / 392.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005097/0.3576, allocations: 21.52 kB / 392.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.718e-05/0.3577, allocations: 34.83 kB / 393 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.3577, allocations: 15.23 kB / 393 MB, free: 13.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003342/0.361, allocations: 3.97 MB / 397 MB, free: 10.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3611, allocations: 0 / 397 MB, free: 10.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006448/0.3617, allocations: 210.7 kB / 397.2 MB, free: 9.902 MB / 302.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.0008927/0.3626, allocations: 429.3 kB / 397.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006597/0.3633, allocations: 380.8 kB / 397.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3633, allocations: 0 / 397.9 MB, free: 9.301 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003742/0.3637, allocations: 214.9 kB / 398.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009362/0.3646, allocations: 201.3 kB / 398.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005159/0.3698, allocations: 5.392 MB / 403.7 MB, free: 3.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.3709, allocations: 1.814 MB / 405.6 MB, free: 1.633 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004547/0.3714, allocations: 275.6 kB / 405.8 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002214/0.3716, allocations: 87.42 kB / 405.9 MB, free: 1.273 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.3716, allocations: 0 / 405.9 MB, free: 1.273 MB / 302.1 MB Notification: Performance of Templates: time 0.03116/0.4028, allocations: 15.23 MB / 421.1 MB, free: 2.102 MB / 318.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 -s cvode -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