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.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.0009454/0.0009454, allocations: 87.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.004259/0.004259, allocations: 162.3 kB / 24.69 MB, free: 9.41 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.8667/0.8667, allocations: 158.6 MB / 186.5 MB, free: 3.055 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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.48e-05/1.657e-05, allocations: 2.281 kB / 298.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.1646/0.1646, allocations: 3.888 MB / 302.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002386/0.167, allocations: 1.545 MB / 303.9 MB, free: 12.59 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002135/0.1672, allocations: 11.78 kB / 303.9 MB, free: 12.59 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003155/0.1675, allocations: 125.7 kB / 304 MB, free: 12.53 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000591/0.1681, allocations: 376.8 kB / 304.4 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003045/0.1684, allocations: 231 kB / 304.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000666/0.1691, allocations: 1.007 MB / 305.6 MB, free: 12.11 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002405/0.1693, allocations: 154.1 kB / 305.8 MB, free: 12.05 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005071/0.1699, allocations: 0.552 MB / 306.3 MB, free: 11.8 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003989/0.1703, allocations: 326.7 kB / 306.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001111/0.1704, allocations: 100.1 kB / 306.7 MB, free: 11.7 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002855/0.1706, allocations: 212.9 kB / 306.9 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.1708, allocations: 192.5 kB / 307.1 MB, free: 11.55 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002189/0.171, allocations: 295.5 kB / 307.4 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001062/0.172, allocations: 1.221 MB / 308.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.172, allocations: 1.312 kB / 308.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.172, allocations: 0 / 308.6 MB, free: 10.99 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.337e-06/0.1721, allocations: 0 / 308.6 MB, free: 10.99 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001408/0.1735, allocations: 1.032 MB / 309.7 MB, free: 10.32 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.1735, allocations: 18.03 kB / 309.7 MB, free: 10.32 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.28e-05/0.1736, allocations: 100.2 kB / 309.8 MB, free: 10.24 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.352e-05/0.1737, allocations: 80.59 kB / 309.9 MB, free: 10.2 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005589/0.1742, allocations: 469.6 kB / 310.3 MB, free: 9.867 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.889e-05/0.1743, allocations: 126.5 kB / 310.4 MB, free: 9.754 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.1744, allocations: 65.56 kB / 310.5 MB, free: 9.734 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007454/0.1752, allocations: 0.712 MB / 311.2 MB, free: 9.328 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.1752, allocations: 0.5156 kB / 311.2 MB, free: 9.328 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.494e-05/0.1752, allocations: 21.56 kB / 311.2 MB, free: 9.312 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.1753, allocations: 13.62 kB / 311.3 MB, free: 9.312 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007408/0.176, allocations: 0.5207 MB / 311.8 MB, free: 9.129 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.1781, allocations: 2.055 MB / 313.8 MB, free: 7.738 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006137/0.1787, allocations: 460.7 kB / 314.3 MB, free: 7.52 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003544/0.179, allocations: 250.7 kB / 314.5 MB, free: 7.41 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.463e-05/0.1791, allocations: 5.141 kB / 314.5 MB, free: 7.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.597e-05/0.1791, allocations: 42.56 kB / 314.6 MB, free: 7.363 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 1.363e-06/0.1791, allocations: 0 / 314.6 MB, free: 7.363 MB / 282.7 MB Notification: Performance of matching and sorting (n=61): time 0.006938/0.186, allocations: 3.319 MB / 317.9 MB, free: 6.188 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.1861, allocations: 92.05 kB / 318 MB, free: 6.086 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006543/0.1867, allocations: 0.5397 MB / 318.5 MB, free: 5.816 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.42e-05/0.1868, allocations: 36.39 kB / 318.6 MB, free: 5.777 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001549/0.1869, allocations: 321.3 kB / 318.9 MB, free: 5.516 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.187, allocations: 215.6 kB / 319.1 MB, free: 5.344 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.1872, allocations: 113.5 kB / 319.2 MB, free: 5.285 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.693e-05/0.1873, allocations: 365.9 kB / 319.5 MB, free: 4.949 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003641/0.1876, allocations: 249.7 kB / 319.8 MB, free: 4.852 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004346/0.1881, allocations: 352.5 kB / 320.1 MB, free: 4.645 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007415/0.1888, allocations: 0.5959 MB / 320.7 MB, free: 4.277 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1888, allocations: 3.938 kB / 320.7 MB, free: 4.273 MB / 282.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009852/0.1898, allocations: 0.7456 MB / 321.5 MB, free: 3.875 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.1898, allocations: 10.53 kB / 321.5 MB, free: 3.871 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.1898, allocations: 6.375 kB / 321.5 MB, free: 3.867 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001498/0.19, allocations: 28.88 kB / 321.5 MB, free: 3.852 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004631/0.1904, allocations: 166.2 kB / 321.7 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006581/0.1911, allocations: 1.326 MB / 323 MB, free: 2.473 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002654/0.1914, allocations: 40.59 kB / 323.1 MB, free: 2.453 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.1914, allocations: 28.42 kB / 323.1 MB, free: 2.441 MB / 282.7 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.0001848/0.1916, allocations: 202 kB / 323.3 MB, free: 2.266 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.609e-05/0.1917, allocations: 65.23 kB / 323.3 MB, free: 2.23 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001108/0.1928, allocations: 0.8349 MB / 324.2 MB, free: 1.738 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.1928, allocations: 6.406 kB / 324.2 MB, free: 1.738 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.1928, allocations: 0 / 324.2 MB, free: 1.738 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.456e-06/0.1928, allocations: 9.484 kB / 324.2 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002334/0.1951, allocations: 1.672 MB / 325.9 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.1951, allocations: 1.188 kB / 325.9 MB, free: 0.6289 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002989/0.1954, allocations: 104.7 kB / 326 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001127/0.1966, allocations: 470.1 kB / 326.4 MB, free: 408 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.347e-05/0.1966, allocations: 16.83 kB / 326.4 MB, free: 396 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003215/0.1998, allocations: 3.003 MB / 329.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.1998, allocations: 0 / 329.4 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001898/0.2017, allocations: 1.367 MB / 330.8 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001939/0.2019, allocations: 127 kB / 330.9 MB, free: 13.06 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.696e-05/0.202, allocations: 14.73 kB / 330.9 MB, free: 13.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002851/0.2023, allocations: 43.28 kB / 331 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.831e-05/0.2024, allocations: 49.06 kB / 331 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.2024, allocations: 21.23 kB / 331.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003939/0.2028, allocations: 394.1 kB / 331.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2028, allocations: 0 / 331.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006247/0.2034, allocations: 188.6 kB / 331.6 MB, free: 12.73 MB / 298.7 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.00219/0.2056, allocations: 1.954 MB / 333.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009474/0.2065, allocations: 0.7033 MB / 334.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2065, allocations: 0 / 334.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005481/0.2071, allocations: 0.5026 MB / 334.8 MB, free: 9.539 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004727/0.2076, allocations: 94.19 kB / 334.9 MB, free: 9.457 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006322/0.2139, allocations: 5.852 MB / 340.7 MB, free: 3.449 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002088/0.2141, allocations: 307.2 kB / 341 MB, free: 3.125 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001976/0.2143, allocations: 68.81 kB / 341.1 MB, free: 3.059 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002633/0.2146, allocations: 244.4 kB / 341.3 MB, free: 2.82 MB / 298.7 MB Notification: Performance of SimCode: time 9.52e-07/0.2146, allocations: 0 / 341.3 MB, free: 2.82 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03123/0.2458, allocations: 16.49 MB / 357.8 MB, free: 2.254 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.13/8.376, allocations: 12.03 kB / 357.8 MB, free: 2.242 MB / 314.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --stepSize=2e-05 --timeout=50 --tolerance=0.0001 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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: 10.069552915170789]