Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008733/0.0008733, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0007929/0.0007929, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.855/0.855, allocations: 177.1 MB / 204.3 MB, free: 5.711 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.776e-05/1.953e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003826/0.003845, allocations: 3.978 MB / 328.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001977/0.005823, allocations: 1.559 MB / 330.1 MB, free: 10.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003063/0.006129, allocations: 15.94 kB / 330.1 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003205/0.006449, allocations: 130.7 kB / 330.3 MB, free: 10.21 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000594/0.007043, allocations: 377.3 kB / 330.6 MB, free: 9.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003255/0.007369, allocations: 247.5 kB / 330.9 MB, free: 9.598 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006241/0.007993, allocations: 1.018 MB / 331.9 MB, free: 8.578 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000217/0.00821, allocations: 146.1 kB / 332 MB, free: 8.438 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004661/0.008676, allocations: 0.5497 MB / 332.6 MB, free: 7.887 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000284/0.00896, allocations: 338.9 kB / 332.9 MB, free: 7.555 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.068e-05/0.009041, allocations: 96 kB / 333 MB, free: 7.461 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002479/0.009289, allocations: 215.9 kB / 333.2 MB, free: 7.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.467e-05/0.009383, allocations: 195.3 kB / 333.4 MB, free: 7.059 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000175/0.009558, allocations: 291.3 kB / 333.7 MB, free: 6.773 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.01057, allocations: 1.223 MB / 334.9 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.01058, allocations: 0 / 334.9 MB, free: 5.547 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.01058, allocations: 0 / 334.9 MB, free: 5.547 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.01059, allocations: 4 kB / 334.9 MB, free: 5.543 MB / 298.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.001424/0.01201, allocations: 1.038 MB / 335.9 MB, free: 4.469 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.01205, allocations: 12.03 kB / 336 MB, free: 4.457 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.455e-05/0.01214, allocations: 94.69 kB / 336.1 MB, free: 4.355 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001795/0.01232, allocations: 96.45 kB / 336.1 MB, free: 4.262 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006175/0.01294, allocations: 468.7 kB / 336.6 MB, free: 3.777 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.882e-05/0.01303, allocations: 130.9 kB / 336.7 MB, free: 3.633 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001226/0.01316, allocations: 64.73 kB / 336.8 MB, free: 3.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007531/0.01391, allocations: 0.7104 MB / 337.5 MB, free: 2.816 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.285e-05/0.01393, allocations: 0 / 337.5 MB, free: 2.816 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.15e-05/0.01398, allocations: 27.98 kB / 337.5 MB, free: 2.789 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.014, allocations: 16 kB / 337.5 MB, free: 2.773 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007812/0.01478, allocations: 0.5243 MB / 338.1 MB, free: 2.246 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00228/0.01706, allocations: 2.058 MB / 340.1 MB, free: 84 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000661/0.01772, allocations: 465.1 kB / 340.6 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003444/0.01806, allocations: 246 kB / 340.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.322e-05/0.01809, allocations: 4 kB / 340.8 MB, free: 15.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.316e-05/0.01811, allocations: 38.56 kB / 340.9 MB, free: 15.31 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 1.483e-06/0.01811, allocations: 0 / 340.9 MB, free: 15.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.00679/0.0249, allocations: 3.333 MB / 344.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.772e-05/0.02494, allocations: 85.55 kB / 344.3 MB, free: 11.83 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005334/0.02547, allocations: 0.5448 MB / 344.8 MB, free: 11.28 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.57e-05/0.02551, allocations: 37.7 kB / 344.9 MB, free: 11.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.02566, allocations: 312.9 kB / 345.2 MB, free: 10.92 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/0.02577, allocations: 222.1 kB / 345.4 MB, free: 10.7 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.02592, allocations: 114.3 kB / 345.5 MB, free: 10.59 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.02602, allocations: 370.8 kB / 345.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.02638, allocations: 245.2 kB / 346.1 MB, free: 9.977 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003974/0.02677, allocations: 344.5 kB / 346.4 MB, free: 9.605 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007732/0.02755, allocations: 0.611 MB / 347 MB, free: 8.965 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.02755, allocations: 0 / 347 MB, free: 8.965 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009629/0.02851, allocations: 0.7438 MB / 347.8 MB, free: 8.211 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.02853, allocations: 7.938 kB / 347.8 MB, free: 8.203 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.02854, allocations: 4 kB / 347.8 MB, free: 8.199 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001312/0.02867, allocations: 32.83 kB / 347.8 MB, free: 8.164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003949/0.02907, allocations: 163.8 kB / 348 MB, free: 8.004 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000878/0.02994, allocations: 1.327 MB / 349.3 MB, free: 6.562 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/0.03023, allocations: 35.98 kB / 349.4 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.121e-05/0.03026, allocations: 27.98 kB / 349.4 MB, free: 6.5 MB / 314.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.0002154/0.03048, allocations: 201.7 kB / 349.6 MB, free: 6.293 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.65e-05/0.03055, allocations: 63.69 kB / 349.6 MB, free: 6.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0011/0.03165, allocations: 0.832 MB / 350.5 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.03166, allocations: 8 kB / 350.5 MB, free: 5.379 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.03166, allocations: 4 kB / 350.5 MB, free: 5.375 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.03167, allocations: 7.922 kB / 350.5 MB, free: 5.367 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0022/0.03387, allocations: 1.671 MB / 352.2 MB, free: 3.641 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.03387, allocations: 0 / 352.2 MB, free: 3.641 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002539/0.03413, allocations: 111.8 kB / 352.3 MB, free: 3.531 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001072/0.0352, allocations: 472.3 kB / 352.7 MB, free: 3.066 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.918e-05/0.03523, allocations: 16 kB / 352.8 MB, free: 3.051 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003262/0.03849, allocations: 2.968 MB / 355.7 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.03849, allocations: 7.969 kB / 355.7 MB, free: 15.96 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002405/0.0409, allocations: 1.37 MB / 357.1 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002438/0.04114, allocations: 135.5 kB / 357.2 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.978e-05/0.04119, allocations: 12 kB / 357.2 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002836/0.04147, allocations: 47.91 kB / 357.3 MB, free: 14.38 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000104/0.04158, allocations: 52.55 kB / 357.3 MB, free: 14.33 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.04161, allocations: 20 kB / 357.4 MB, free: 14.31 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003678/0.04197, allocations: 390.8 kB / 357.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.04197, allocations: 0 / 357.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005721/0.04255, allocations: 192 kB / 357.9 MB, free: 13.74 MB / 330.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.002355/0.0449, allocations: 1.965 MB / 359.9 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.04599, allocations: 0.6994 MB / 360.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.046, allocations: 0 / 360.6 MB, free: 11.04 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005771/0.04657, allocations: 0.5026 MB / 361.1 MB, free: 10.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004905/0.04706, allocations: 99.19 kB / 361.2 MB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007099/0.05416, allocations: 5.852 MB / 367 MB, free: 4.418 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/0.0545, allocations: 307.1 kB / 367.3 MB, free: 4.094 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003722/0.05487, allocations: 68.81 kB / 367.4 MB, free: 4.027 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003526/0.05522, allocations: 248.3 kB / 367.7 MB, free: 3.785 MB / 330.7 MB Notification: Performance of SimCode: time 1.333e-06/0.05522, allocations: 0 / 367.7 MB, free: 3.785 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03663/0.09186, allocations: 16.56 MB / 384.2 MB, free: 3.508 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.128/8.22, allocations: 0 / 384.2 MB, free: 3.508 MB / 346.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --stepSize=2e-05 --timeout=50 --tolerance=0.0001 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 9.928381870500743]