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.001107/0.001107, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001079/0.00108, allocations: 191 kB / 18.63 MB, free: 4.375 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.319/1.319, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009896/0.0009898, allocations: 43.61 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.094/0.095, allocations: 49.45 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004633/0.09966, allocations: 3.388 MB / 354.9 MB, free: 280 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002297/0.102, allocations: 1.45 MB / 356.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000197/0.1022, allocations: 4 kB / 356.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002677/0.1049, allocations: 2.663 MB / 359 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004391/0.1054, allocations: 170.7 kB / 359.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007061/0.1061, allocations: 315.9 kB / 359.5 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001612/0.1077, allocations: 1.801 MB / 361.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002219/0.1079, allocations: 135.3 kB / 361.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003471/0.1083, allocations: 297.1 kB / 361.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003543/0.1087, allocations: 330.8 kB / 362 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.589e-05/0.1088, allocations: 48 kB / 362.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.1089, allocations: 87.97 kB / 362.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005499/0.1095, allocations: 0.8452 MB / 363 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006563/0.1102, allocations: 0.9346 MB / 364 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001889/0.1121, allocations: 2.62 MB / 366.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1121, allocations: 0 / 366.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.1121, allocations: 0 / 366.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.343e-05/0.1121, allocations: 0 / 366.6 MB, free: 4.562 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.004461/0.1166, allocations: 2.794 MB / 369.4 MB, free: 1.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.1166, allocations: 12.03 kB / 369.4 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003211/0.117, allocations: 281.3 kB / 369.7 MB, free: 1.414 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1647/0.2817, allocations: 1.818 MB / 371.5 MB, free: 23.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.2818, allocations: 58.23 kB / 371.5 MB, free: 23.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002456/0.2821, allocations: 47.8 kB / 371.6 MB, free: 23.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008788/0.283, allocations: 396.7 kB / 372 MB, free: 23.83 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.283, allocations: 0 / 372 MB, free: 23.83 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.838e-05/0.2831, allocations: 21.02 kB / 372 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.2831, allocations: 8.656 kB / 372 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008072/0.2839, allocations: 333.8 kB / 372.3 MB, free: 23.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006232/0.2901, allocations: 2.907 MB / 375.2 MB, free: 22.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006362/0.2908, allocations: 314.8 kB / 375.5 MB, free: 22.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003098/0.2911, allocations: 163.3 kB / 375.7 MB, free: 22.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.062e-05/0.2912, allocations: 5.656 kB / 375.7 MB, free: 22.29 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.2912, allocations: 38.75 kB / 375.7 MB, free: 22.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.164e-06/0.2912, allocations: 0.6562 kB / 375.7 MB, free: 22.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.005474/0.2967, allocations: 2.39 MB / 378.1 MB, free: 20.88 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.482e-05/0.2968, allocations: 88.77 kB / 378.2 MB, free: 20.78 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008247/0.305, allocations: 5.426 MB / 383.6 MB, free: 19.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.036e-05/0.3051, allocations: 35.95 kB / 383.7 MB, free: 19.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.3062, allocations: 1.208 MB / 384.9 MB, free: 18.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.3064, allocations: 169.5 kB / 385 MB, free: 18.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.3065, allocations: 89.53 kB / 385.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.42e-05/0.3066, allocations: 325.3 kB / 385.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003473/0.3069, allocations: 138 kB / 385.6 MB, free: 17.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003614/0.3073, allocations: 222.3 kB / 385.8 MB, free: 17.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006403/0.308, allocations: 380.9 kB / 386.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.381e-06/0.308, allocations: 0 / 386.2 MB, free: 17.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00146/0.3094, allocations: 0.6813 MB / 386.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.3095, allocations: 6.594 kB / 386.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.3095, allocations: 2.281 kB / 386.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.994e-05/0.3095, allocations: 12.19 kB / 386.9 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000515/0.31, allocations: 125.2 kB / 387 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.3101, allocations: 5.484 kB / 387 MB, free: 16.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000642/0.3107, allocations: 16.91 kB / 387 MB, free: 16.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.953e-05/0.3108, allocations: 18.34 kB / 387 MB, free: 16.91 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.0009651/0.3117, allocations: 0.9266 MB / 388 MB, free: 16.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004563/0.3122, allocations: 271.1 kB / 388.2 MB, free: 16.4 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0015/0.3137, allocations: 0.7977 MB / 389 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.3137, allocations: 9.047 kB / 389 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.3137, allocations: 5.938 kB / 389 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.3138, allocations: 3.047 kB / 389 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002025/0.3158, allocations: 1.471 MB / 390.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-06/0.3158, allocations: 0 / 390.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004391/0.3163, allocations: 96.77 kB / 390.6 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003386/0.3166, allocations: 99.73 kB / 390.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.598e-05/0.3167, allocations: 8.125 kB / 390.7 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004156/0.3171, allocations: 0.6401 MB / 391.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3171, allocations: 0 / 391.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001602/0.3187, allocations: 1.077 MB / 392.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/0.3197, allocations: 488.5 kB / 392.9 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003194/0.3201, allocations: 15.56 kB / 392.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006361/0.3207, allocations: 21.39 kB / 392.9 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.763e-05/0.3208, allocations: 30.84 kB / 393 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.774e-05/0.3208, allocations: 14.98 kB / 393 MB, free: 13.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.003943/0.3248, allocations: 3.973 MB / 397 MB, free: 9.953 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3248, allocations: 2 kB / 397 MB, free: 9.953 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007853/0.3256, allocations: 207.8 kB / 397.2 MB, free: 9.754 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.0009177/0.3265, allocations: 421.2 kB / 397.6 MB, free: 9.531 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007556/0.3273, allocations: 385.2 kB / 398 MB, free: 9.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3273, allocations: 0 / 398 MB, free: 9.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004144/0.3277, allocations: 210.4 kB / 398.2 MB, free: 8.949 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.3288, allocations: 194.1 kB / 398.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005706/0.3346, allocations: 5.402 MB / 403.8 MB, free: 3.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001313/0.3359, allocations: 1.81 MB / 405.6 MB, free: 1.496 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004889/0.3364, allocations: 279.6 kB / 405.8 MB, free: 1.219 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.3367, allocations: 87.44 kB / 405.9 MB, free: 1.133 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3367, allocations: 7.875 kB / 405.9 MB, free: 1.125 MB / 302.1 MB Notification: Performance of Templates: time 0.03075/0.3675, allocations: 15.24 MB / 421.2 MB, free: 1.941 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 gbode -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