Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.005697/0.005697, allocations: 161.5 kB / 24.69 MB, free: 9.414 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8297/0.8297, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.298e-05/1.458e-05, allocations: 2.281 kB / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.003004/0.003018, allocations: 3.104 MB / 301.5 MB, free: 396 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1521/0.1551, allocations: 1.347 MB / 302.9 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002132/0.1553, allocations: 9.656 kB / 302.9 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002892/0.1582, allocations: 2.674 MB / 305.6 MB, free: 13.02 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003739/0.1586, allocations: 189.8 kB / 305.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005203/0.1591, allocations: 284.6 kB / 306 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001772/0.1609, allocations: 1.816 MB / 307.9 MB, free: 12.8 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.1611, allocations: 100.2 kB / 307.9 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005064/0.1616, allocations: 418.6 kB / 308.4 MB, free: 12.73 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003868/0.162, allocations: 291.5 kB / 308.6 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.26e-05/0.1621, allocations: 44.16 kB / 308.7 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001478/0.1622, allocations: 69.94 kB / 308.8 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007531/0.163, allocations: 0.8624 MB / 309.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003568/0.1633, allocations: 470.6 kB / 310.1 MB, free: 12.12 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00209/0.1654, allocations: 2.487 MB / 312.6 MB, free: 11.33 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.984e-06/0.1654, allocations: 4 kB / 312.6 MB, free: 11.33 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1654, allocations: 6.062 kB / 312.6 MB, free: 11.32 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.399e-05/0.1655, allocations: 0 / 312.6 MB, free: 11.32 MB / 282.7 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.002653/0.1681, allocations: 2.789 MB / 315.4 MB, free: 9.219 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.1682, allocations: 13.64 kB / 315.4 MB, free: 9.215 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.348e-05/0.1682, allocations: 74.53 kB / 315.4 MB, free: 9.145 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002703/0.1685, allocations: 294.8 kB / 315.7 MB, free: 8.98 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001793/0.1703, allocations: 1.79 MB / 317.5 MB, free: 7.938 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.325e-05/0.1704, allocations: 116.8 kB / 317.6 MB, free: 7.824 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001253/0.1705, allocations: 50.08 kB / 317.7 MB, free: 7.805 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004695/0.171, allocations: 444 kB / 318.1 MB, free: 7.496 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.171, allocations: 5.078 kB / 318.1 MB, free: 7.492 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.009e-05/0.171, allocations: 15.81 kB / 318.1 MB, free: 7.48 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.171, allocations: 10.91 kB / 318.2 MB, free: 7.48 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004881/0.1715, allocations: 328.2 kB / 318.5 MB, free: 7.324 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002603/0.1741, allocations: 2.624 MB / 321.1 MB, free: 5.609 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004327/0.1746, allocations: 303.7 kB / 321.4 MB, free: 5.434 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001892/0.1748, allocations: 157.1 kB / 321.5 MB, free: 5.348 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.106e-05/0.1748, allocations: 4.188 kB / 321.6 MB, free: 5.348 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.1748, allocations: 37.94 kB / 321.6 MB, free: 5.305 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 1.452e-06/0.1748, allocations: 0 / 321.6 MB, free: 5.305 MB / 282.7 MB Notification: Performance of matching and sorting (n=48): time 0.002881/0.1777, allocations: 2.365 MB / 324 MB, free: 3.801 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.95e-05/0.1777, allocations: 82.83 kB / 324 MB, free: 3.707 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00391/0.1816, allocations: 5.437 MB / 329.5 MB, free: 15.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.1817, allocations: 37.7 kB / 329.5 MB, free: 15.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008091/0.1825, allocations: 1.211 MB / 330.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.142e-05/0.1826, allocations: 163.6 kB / 330.9 MB, free: 13.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.1827, allocations: 94.14 kB / 331 MB, free: 13.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.1828, allocations: 329.9 kB / 331.3 MB, free: 13.56 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000207/0.183, allocations: 137 kB / 331.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002393/0.1832, allocations: 221.1 kB / 331.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004467/0.1837, allocations: 389.5 kB / 332 MB, free: 12.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1837, allocations: 0 / 332 MB, free: 12.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007637/0.1844, allocations: 0.6947 MB / 332.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.1844, allocations: 11.98 kB / 332.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.1844, allocations: 256 / 332.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1845, allocations: 8 kB / 332.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000278/0.1847, allocations: 123.8 kB / 332.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.1848, allocations: 4 kB / 332.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002262/0.185, allocations: 20.8 kB / 332.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.474e-05/0.185, allocations: 20.62 kB / 332.9 MB, free: 11.89 MB / 298.7 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.000755/0.1858, allocations: 0.923 MB / 333.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/0.186, allocations: 282.1 kB / 334.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000949/0.1869, allocations: 0.7791 MB / 334.9 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.1869, allocations: 8 kB / 334.9 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.054e-06/0.187, allocations: 0 / 334.9 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.187, allocations: 3.984 kB / 334.9 MB, free: 9.883 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.1881, allocations: 1.238 MB / 336.1 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1881, allocations: 4 kB / 336.1 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.1884, allocations: 92.88 kB / 336.2 MB, free: 8.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002571/0.1886, allocations: 92.67 kB / 336.3 MB, free: 8.426 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.1886, allocations: 12 kB / 336.3 MB, free: 8.414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000621/0.1893, allocations: 0.633 MB / 337 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1893, allocations: 4 kB / 337 MB, free: 7.754 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/0.1903, allocations: 1.061 MB / 338 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004849/0.1908, allocations: 434 kB / 338.4 MB, free: 6.246 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000127/0.1909, allocations: 17.88 kB / 338.5 MB, free: 6.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002578/0.1912, allocations: 19.98 kB / 338.5 MB, free: 6.211 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.376e-05/0.1912, allocations: 32.38 kB / 338.5 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.1913, allocations: 16 kB / 338.5 MB, free: 6.164 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.003029/0.1943, allocations: 3.97 MB / 342.5 MB, free: 2.199 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1943, allocations: 4 kB / 342.5 MB, free: 2.195 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005003/0.1948, allocations: 207.9 kB / 342.7 MB, free: 1.992 MB / 298.7 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.002208/0.197, allocations: 1.958 MB / 344.7 MB, free: 32 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005229/0.1975, allocations: 366.2 kB / 345 MB, free: 15.67 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1975, allocations: 0 / 345 MB, free: 15.67 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002903/0.1978, allocations: 198.8 kB / 345.2 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008778/0.1987, allocations: 187.8 kB / 345.4 MB, free: 15.29 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02546/0.2242, allocations: 19.22 MB / 364.6 MB, free: 11.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001174/0.2253, allocations: 1.245 MB / 365.9 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003811/0.2257, allocations: 275.6 kB / 366.1 MB, free: 10.33 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007584/0.2265, allocations: 0.9299 MB / 367.1 MB, free: 9.398 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.2265, allocations: 0 / 367.1 MB, free: 9.398 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05119/0.2777, allocations: 39.78 MB / 406.8 MB, free: 1.414 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.994/9.272, allocations: 7.844 kB / 406.9 MB, free: 1.406 MB / 362.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.002111348323524]