Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 106.2 kB / 18.4 MB, free: 4.57 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.001797/0.001797, allocations: 194.3 kB / 19.33 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.881/1.881, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 47.94 kB / 329.2 MB, free: 3.312 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07384/0.07506, allocations: 46.62 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00522/0.08031, allocations: 4.301 MB / 380.1 MB, free: 272 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.1761/0.2564, allocations: 1.628 MB / 381.7 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000634/0.2571, allocations: 11.28 kB / 381.8 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005419/0.2577, allocations: 121.1 kB / 381.9 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.259, allocations: 362.4 kB / 382.2 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006693/0.2597, allocations: 227.1 kB / 382.4 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001494/0.2612, allocations: 0.9846 MB / 383.4 MB, free: 9.727 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000507/0.2618, allocations: 241.5 kB / 383.7 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.2628, allocations: 380.5 kB / 384 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.2638, allocations: 424.7 kB / 384.5 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000347/0.2642, allocations: 96.22 kB / 384.5 MB, free: 9.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007799/0.265, allocations: 221.6 kB / 384.8 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002545/0.2652, allocations: 195.5 kB / 385 MB, free: 9.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006191/0.2659, allocations: 412.7 kB / 385.4 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001659/0.2675, allocations: 1.161 MB / 386.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.2676, allocations: 1.219 kB / 386.5 MB, free: 8.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2676, allocations: 4 kB / 386.5 MB, free: 8.426 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.529e-05/0.2676, allocations: 0 / 386.5 MB, free: 8.426 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002601/0.2702, allocations: 1.091 MB / 387.6 MB, free: 7.699 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.2703, allocations: 13.59 kB / 387.6 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00018/0.2704, allocations: 83.16 kB / 387.7 MB, free: 7.652 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009284/0.2714, allocations: 0.5139 MB / 388.2 MB, free: 7.258 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.365e-05/0.2715, allocations: 78.03 kB / 388.3 MB, free: 7.203 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002158/0.2717, allocations: 70.12 kB / 388.4 MB, free: 7.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001154/0.2729, allocations: 0.6017 MB / 389 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.2729, allocations: 0 / 389 MB, free: 6.906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.58e-05/0.273, allocations: 26.7 kB / 389 MB, free: 6.887 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.273, allocations: 17 kB / 389 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001068/0.274, allocations: 0.5272 MB / 389.5 MB, free: 6.695 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00316/0.2772, allocations: 2.282 MB / 391.8 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009187/0.2782, allocations: 487.5 kB / 392.3 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005209/0.2787, allocations: 260 kB / 392.6 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.128e-05/0.2787, allocations: 4.938 kB / 392.6 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.2788, allocations: 41.69 kB / 392.6 MB, free: 4.855 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.334e-06/0.2788, allocations: 0 / 392.6 MB, free: 4.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=61): time 0.01354/0.2923, allocations: 3.554 MB / 396.2 MB, free: 3.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.2924, allocations: 83.83 kB / 396.2 MB, free: 3.305 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000791/0.2932, allocations: 0.5323 MB / 396.8 MB, free: 3.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.061e-05/0.2933, allocations: 36.45 kB / 396.8 MB, free: 3.004 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001748/0.2934, allocations: 317 kB / 397.1 MB, free: 2.754 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.2936, allocations: 201.7 kB / 397.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001928/0.2938, allocations: 118.1 kB / 397.4 MB, free: 2.535 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.743e-05/0.2939, allocations: 369.4 kB / 397.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005473/0.2945, allocations: 245.5 kB / 398 MB, free: 2.098 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005729/0.295, allocations: 350.3 kB / 398.4 MB, free: 1.898 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001103/0.2962, allocations: 0.5993 MB / 399 MB, free: 1.559 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.297e-06/0.2962, allocations: 1.281 kB / 399 MB, free: 1.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001454/0.2976, allocations: 0.7456 MB / 399.7 MB, free: 1.227 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.2977, allocations: 5.5 kB / 399.7 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.2977, allocations: 2.75 kB / 399.7 MB, free: 1.227 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001844/0.2979, allocations: 29.81 kB / 399.8 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008257/0.2987, allocations: 169.1 kB / 399.9 MB, free: 1.199 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009495/0.2997, allocations: 1.438 MB / 401.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006793/0.3004, allocations: 41.05 kB / 401.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.562e-05/0.3004, allocations: 28.94 kB / 401.4 MB, free: 15.73 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003378/0.3008, allocations: 193.5 kB / 401.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.3009, allocations: 64.62 kB / 401.7 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002023/0.303, allocations: 0.8386 MB / 402.5 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-05/0.303, allocations: 14.91 kB / 402.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.303, allocations: 5.031 kB / 402.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.303, allocations: 4.125 kB / 402.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003848/0.3069, allocations: 1.855 MB / 404.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-06/0.3069, allocations: 4 kB / 404.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005405/0.3074, allocations: 105.8 kB / 404.5 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002412/0.3099, allocations: 472.9 kB / 405 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.532e-05/0.3099, allocations: 15.22 kB / 405 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00519/0.3151, allocations: 3.146 MB / 408.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3152, allocations: 0 / 408.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00326/0.3184, allocations: 1.374 MB / 409.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004177/0.3189, allocations: 206.7 kB / 409.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001704/0.319, allocations: 12.5 kB / 409.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000707/0.3198, allocations: 42.88 kB / 409.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.3199, allocations: 45.75 kB / 409.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.16e-05/0.32, allocations: 20.64 kB / 409.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005789/0.3206, allocations: 388.1 kB / 410.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3206, allocations: 0 / 410.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009316/0.3215, allocations: 194.2 kB / 410.4 MB, free: 9.762 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003402/0.3219, allocations: 138.2 kB / 410.5 MB, free: 9.652 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001645/0.3235, allocations: 0.7398 MB / 411.3 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3235, allocations: 0 / 411.3 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009473/0.3245, allocations: 0.5196 MB / 411.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008087/0.3253, allocations: 89.36 kB / 411.9 MB, free: 8.871 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003264/0.3286, allocations: 1.507 MB / 413.4 MB, free: 7.895 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.3291, allocations: 0.9032 MB / 414.3 MB, free: 7.102 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002395/0.3293, allocations: 57.91 kB / 414.3 MB, free: 7.082 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3293, allocations: 0 / 414.3 MB, free: 7.082 MB / 334.1 MB Notification: Performance of Templates: time 0.01679/0.3461, allocations: 11.92 MB / 426.3 MB, free: 11.69 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches