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.00135/0.00135, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001487/0.001488, allocations: 207.9 kB / 19.25 MB, free: 3.898 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.443/1.443, allocations: 227.7 MB / 247.7 MB, free: 10.31 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.001977/0.001977, allocations: 64.56 kB / 307.9 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1045, allocations: 50.54 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005415/0.11, allocations: 3.437 MB / 361.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003291/0.1133, allocations: 1.66 MB / 363.5 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002857/0.1136, allocations: 8 kB / 363.5 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003356/0.117, allocations: 2.663 MB / 366.2 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006424/0.1177, allocations: 222.5 kB / 366.4 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008015/0.1185, allocations: 318.8 kB / 366.7 MB, free: 5.613 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002194/0.1207, allocations: 1.817 MB / 368.6 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002666/0.121, allocations: 139.7 kB / 368.7 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004723/0.1214, allocations: 313 kB / 369 MB, free: 3.348 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004457/0.1219, allocations: 334.8 kB / 369.3 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.122, allocations: 44 kB / 369.4 MB, free: 2.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002366/0.1223, allocations: 95.97 kB / 369.5 MB, free: 2.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007486/0.123, allocations: 0.853 MB / 370.3 MB, free: 2.027 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008498/0.1239, allocations: 0.9384 MB / 371.2 MB, free: 1.082 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.152/0.2759, allocations: 2.595 MB / 373.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.276, allocations: 1.312 kB / 373.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.276, allocations: 1.031 kB / 373.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.021e-05/0.276, allocations: 0 / 373.8 MB, free: 13.06 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.004041/0.2801, allocations: 2.817 MB / 376.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2801, allocations: 10.16 kB / 376.7 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005014/0.2806, allocations: 290.7 kB / 377 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002247/0.2829, allocations: 1.833 MB / 378.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.735e-05/0.283, allocations: 59.53 kB / 378.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/0.2832, allocations: 52.19 kB / 378.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006874/0.2839, allocations: 393.4 kB / 379.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.2839, allocations: 3.75 kB / 379.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.928e-05/0.2839, allocations: 16.5 kB / 379.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.2839, allocations: 9.875 kB / 379.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006709/0.2846, allocations: 327.8 kB / 379.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004121/0.2888, allocations: 2.913 MB / 382.5 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005835/0.2894, allocations: 320.5 kB / 382.9 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.2897, allocations: 161.4 kB / 383 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.361e-05/0.2897, allocations: 6.203 kB / 383 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.2897, allocations: 36.55 kB / 383.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 3.286e-06/0.2898, allocations: 4.469 kB / 383.1 MB, free: 9.164 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.004719/0.2945, allocations: 2.405 MB / 385.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.2945, allocations: 83.19 kB / 385.5 MB, free: 7.699 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006544/0.3011, allocations: 5.454 MB / 391 MB, free: 6.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.373e-05/0.3012, allocations: 36.45 kB / 391 MB, free: 5.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008763/0.3021, allocations: 1.182 MB / 392.2 MB, free: 5.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.3022, allocations: 168.6 kB / 392.4 MB, free: 4.941 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001272/0.3023, allocations: 92.78 kB / 392.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.788e-05/0.3024, allocations: 327 kB / 392.8 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003153/0.3027, allocations: 141.4 kB / 392.9 MB, free: 4.523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003237/0.303, allocations: 225.8 kB / 393.2 MB, free: 4.391 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006276/0.3037, allocations: 377.4 kB / 393.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.3037, allocations: 1.969 kB / 393.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001354/0.305, allocations: 0.6928 MB / 394.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.3051, allocations: 5.062 kB / 394.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3051, allocations: 2.312 kB / 394.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.94e-05/0.3051, allocations: 4.844 kB / 394.2 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005118/0.3056, allocations: 121.7 kB / 394.3 MB, free: 3.848 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.3057, allocations: 6.141 kB / 394.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005267/0.3062, allocations: 17.58 kB / 394.4 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.126e-05/0.3062, allocations: 17.84 kB / 394.4 MB, free: 3.836 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.0009688/0.3072, allocations: 0.9223 MB / 395.3 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002759/0.3075, allocations: 281.8 kB / 395.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001255/0.3087, allocations: 0.7894 MB / 396.4 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.3088, allocations: 6.781 kB / 396.4 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.3088, allocations: 4 kB / 396.4 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.3088, allocations: 1.969 kB / 396.4 MB, free: 3.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.3103, allocations: 1.478 MB / 397.9 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.3104, allocations: 3.562 kB / 397.9 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004176/0.3108, allocations: 93.11 kB / 398 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003127/0.3111, allocations: 104.6 kB / 398.1 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/0.3111, allocations: 7.156 kB / 398.1 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003838/0.3115, allocations: 0.6369 MB / 398.7 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3116, allocations: 0 / 398.7 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.313, allocations: 1.082 MB / 399.8 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006145/0.3136, allocations: 496.1 kB / 400.3 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.3138, allocations: 11.14 kB / 400.3 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000478/0.3143, allocations: 24.05 kB / 400.3 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.583e-05/0.3144, allocations: 24.75 kB / 400.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.596e-05/0.3144, allocations: 17.3 kB / 400.3 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.005416/0.3199, allocations: 3.991 MB / 404.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.3199, allocations: 0 / 404.3 MB, free: 12.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001592/0.3215, allocations: 204 kB / 404.5 MB, free: 12.48 MB / 318.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.001596/0.3231, allocations: 424.5 kB / 405 MB, free: 12.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.3242, allocations: 410.8 kB / 405.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.3242, allocations: 0 / 405.4 MB, free: 11.86 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005155/0.3247, allocations: 215.5 kB / 405.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001451/0.3262, allocations: 190.5 kB / 405.7 MB, free: 11.47 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009069/0.3353, allocations: 5.673 MB / 411.4 MB, free: 5.773 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001792/0.3371, allocations: 1.825 MB / 413.2 MB, free: 3.914 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005497/0.3376, allocations: 95.42 kB / 413.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3377, allocations: 0 / 413.3 MB, free: 3.82 MB / 318.1 MB Notification: Performance of Templates: time 0.06272/0.4004, allocations: 35.98 MB / 449.3 MB, free: 15.84 MB / 366.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 -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