Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.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_4.0.0_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_4.0.0_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.001174/0.001174, allocations: 88.39 kB / 16.31 MB, free: 6.449 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.00146/0.00146, allocations: 183.1 kB / 17.21 MB, free: 6.316 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.479/1.479, allocations: 223.3 MB / 241.2 MB, free: 5.191 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002341/0.0002341, allocations: 7.344 kB / 300.8 MB, free: 5.574 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1274, allocations: 50.43 MB / 351.3 MB, free: 11.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.007531/0.135, allocations: 3.77 MB / 355 MB, free: 7.551 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004827/0.1399, allocations: 1.505 MB / 356.5 MB, free: 6.035 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005996/0.1406, allocations: 4 kB / 356.5 MB, free: 6.031 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000466/0.141, allocations: 95.25 kB / 356.6 MB, free: 5.938 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001238/0.1423, allocations: 286.2 kB / 356.9 MB, free: 5.656 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006612/0.143, allocations: 143.8 kB / 357 MB, free: 5.516 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001659/0.1447, allocations: 0.8729 MB / 357.9 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004847/0.1452, allocations: 178 kB / 358.1 MB, free: 4.465 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006253/0.1458, allocations: 310.8 kB / 358.4 MB, free: 4.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007102/0.1465, allocations: 362.5 kB / 358.8 MB, free: 3.805 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.1467, allocations: 40 kB / 358.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005275/0.1472, allocations: 159.9 kB / 358.9 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002035/0.1474, allocations: 135.4 kB / 359.1 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002282/0.1477, allocations: 157.3 kB / 359.2 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001393/0.1491, allocations: 0.8919 MB / 360.1 MB, free: 2.422 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.1491, allocations: 0 / 360.1 MB, free: 2.422 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1491, allocations: 4 kB / 360.1 MB, free: 2.418 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.1492, allocations: 0 / 360.1 MB, free: 2.418 MB / 286.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.00364/0.1528, allocations: 0.9818 MB / 361.1 MB, free: 1.387 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.1529, allocations: 8.031 kB / 361.1 MB, free: 1.379 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002397/0.1531, allocations: 79.16 kB / 361.2 MB, free: 1.301 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.1543, allocations: 0.4902 MB / 361.7 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000147/0.1545, allocations: 82.95 kB / 361.8 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000322/0.1548, allocations: 63.98 kB / 361.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002046/0.1569, allocations: 0.6058 MB / 362.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.893e-05/0.1569, allocations: 3.938 kB / 362.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.291e-05/0.157, allocations: 24 kB / 362.5 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.143e-05/0.1571, allocations: 16 kB / 362.5 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002209/0.1593, allocations: 0.5322 MB / 363 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00659/0.1659, allocations: 2.318 MB / 365.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/0.1679, allocations: 493.7 kB / 365.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.1689, allocations: 274.1 kB / 366.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.506e-05/0.169, allocations: 7.938 kB / 366.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.996e-05/0.1691, allocations: 38.56 kB / 366.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 4.188e-06/0.1691, allocations: 0 / 366.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.02388/0.193, allocations: 3.703 MB / 369.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.846e-05/0.1931, allocations: 85.67 kB / 369.9 MB, free: 8.262 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00132/0.1945, allocations: 0.5292 MB / 370.4 MB, free: 7.723 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.1946, allocations: 33.7 kB / 370.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003609/0.195, allocations: 316.3 kB / 370.8 MB, free: 7.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000304/0.1953, allocations: 209 kB / 371 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.754e-05/0.1954, allocations: 16 kB / 371 MB, free: 7.145 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002316/0.1956, allocations: 366.8 kB / 371.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007226/0.1964, allocations: 253.2 kB / 371.6 MB, free: 6.531 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000644/0.197, allocations: 356.4 kB / 372 MB, free: 6.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006205/0.1976, allocations: 294 kB / 372.2 MB, free: 5.863 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.1977, allocations: 4 kB / 372.2 MB, free: 5.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001571/0.1992, allocations: 0.7568 MB / 373 MB, free: 5.094 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.1993, allocations: 8 kB / 373 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.275e-06/0.1993, allocations: 0 / 373 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001959/0.1995, allocations: 32.97 kB / 373 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008249/0.2003, allocations: 167.8 kB / 373.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001078/0.2014, allocations: 1.335 MB / 374.5 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005489/0.202, allocations: 48 kB / 374.6 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.96e-05/0.202, allocations: 23.98 kB / 374.6 MB, free: 3.344 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003137/0.2024, allocations: 205.6 kB / 374.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.2025, allocations: 59.34 kB / 374.9 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001859/0.2044, allocations: 0.8608 MB / 375.7 MB, free: 2.211 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.2044, allocations: 8 kB / 375.7 MB, free: 2.203 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.515e-06/0.2044, allocations: 0 / 375.7 MB, free: 2.203 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/0.2044, allocations: 3.984 kB / 375.7 MB, free: 2.199 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003671/0.2081, allocations: 1.897 MB / 377.6 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.2081, allocations: 0 / 377.6 MB, free: 244 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005209/0.2086, allocations: 119.8 kB / 377.8 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002294/0.2109, allocations: 0.5025 MB / 378.3 MB, free: 15.62 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.722e-05/0.211, allocations: 12 kB / 378.3 MB, free: 15.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004728/0.2157, allocations: 2.95 MB / 381.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2158, allocations: 4.031 kB / 381.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003187/0.219, allocations: 1.401 MB / 382.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003662/0.2193, allocations: 208.3 kB / 382.8 MB, free: 10.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.384e-05/0.2194, allocations: 12 kB / 382.8 MB, free: 10.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005829/0.22, allocations: 51.95 kB / 382.9 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/0.2202, allocations: 52.38 kB / 382.9 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.435e-05/0.2203, allocations: 23.98 kB / 383 MB, free: 10.74 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005521/0.2208, allocations: 382.9 kB / 383.3 MB, free: 10.37 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2208, allocations: 0 / 383.3 MB, free: 10.37 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007612/0.2216, allocations: 184.1 kB / 383.5 MB, free: 10.19 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.000291/0.2219, allocations: 155.1 kB / 383.7 MB, free: 10.03 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.2234, allocations: 0.7486 MB / 384.4 MB, free: 9.266 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.2234, allocations: 0 / 384.4 MB, free: 9.266 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009074/0.2243, allocations: 0.5252 MB / 384.9 MB, free: 8.727 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007546/0.2251, allocations: 99.42 kB / 385 MB, free: 8.629 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.2281, allocations: 1.822 MB / 386.9 MB, free: 6.773 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005743/0.2287, allocations: 0.9007 MB / 387.8 MB, free: 5.848 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003613/0.2291, allocations: 76.8 kB / 387.8 MB, free: 5.77 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001779/0.2293, allocations: 51.42 kB / 387.9 MB, free: 5.719 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2293, allocations: 0 / 387.9 MB, free: 5.719 MB / 318.1 MB Notification: Performance of Templates: time 0.01769/0.247, allocations: 9.303 MB / 397.2 MB, free: 12.5 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches