Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007359/0.0007359, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007611/0.0007611, allocations: 157.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8728/0.8728, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.52e-07/9.52e-07, allocations: 0 / 318.4 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.725e-06/8.677e-06, allocations: 2.281 kB / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00289/0.002898, allocations: 3.151 MB / 321.6 MB, free: 3.191 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.004634, allocations: 1.41 MB / 323 MB, free: 1.773 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.004805, allocations: 7.938 kB / 323 MB, free: 1.766 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.006666, allocations: 2.67 MB / 325.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003354/0.007002, allocations: 182.6 kB / 325.9 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004955/0.007497, allocations: 312.9 kB / 326.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001299/0.008796, allocations: 1.821 MB / 328 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.008936, allocations: 99.62 kB / 328.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003617/0.009298, allocations: 413.1 kB / 328.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002365/0.009535, allocations: 291.2 kB / 328.8 MB, free: 12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.333e-05/0.009588, allocations: 44 kB / 328.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001149/0.009703, allocations: 83.92 kB / 328.9 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000382/0.01008, allocations: 0.8649 MB / 329.8 MB, free: 11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002874/0.01037, allocations: 470.1 kB / 330.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001371/0.01174, allocations: 2.496 MB / 332.7 MB, free: 8.039 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.01175, allocations: 4 kB / 332.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.01175, allocations: 0 / 332.7 MB, free: 8.035 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.891e-05/0.01179, allocations: 4 kB / 332.7 MB, free: 8.031 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002443/0.01423, allocations: 2.785 MB / 335.5 MB, free: 5.195 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.92e-05/0.01426, allocations: 16.03 kB / 335.5 MB, free: 5.18 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.817e-05/0.01432, allocations: 74.72 kB / 335.6 MB, free: 5.098 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002256/0.01454, allocations: 295 kB / 335.9 MB, free: 4.809 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001502/0.01604, allocations: 1.793 MB / 337.7 MB, free: 2.977 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.442e-05/0.01611, allocations: 106.7 kB / 337.8 MB, free: 2.855 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.495e-05/0.0162, allocations: 56.44 kB / 337.8 MB, free: 2.801 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004528/0.01666, allocations: 442.4 kB / 338.3 MB, free: 2.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.01667, allocations: 4 kB / 338.3 MB, free: 2.336 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.426e-05/0.01669, allocations: 16 kB / 338.3 MB, free: 2.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.0167, allocations: 8 kB / 338.3 MB, free: 2.312 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004208/0.01712, allocations: 327.7 kB / 338.6 MB, free: 1.992 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002381/0.0195, allocations: 2.632 MB / 341.2 MB, free: 15.26 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.01989, allocations: 297 kB / 341.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001859/0.02007, allocations: 157.5 kB / 341.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.409e-05/0.0201, allocations: 8 kB / 341.7 MB, free: 14.79 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.02012, allocations: 42.48 kB / 341.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 1.343e-06/0.02012, allocations: 0 / 341.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.002883/0.023, allocations: 2.398 MB / 344.1 MB, free: 12.3 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.02303, allocations: 85.61 kB / 344.2 MB, free: 12.2 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003752/0.02678, allocations: 5.435 MB / 349.7 MB, free: 6.758 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.388e-05/0.02681, allocations: 37.7 kB / 349.7 MB, free: 6.715 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007694/0.02758, allocations: 1.207 MB / 350.9 MB, free: 5.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.02772, allocations: 170.5 kB / 351.1 MB, free: 5.332 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-05/0.02781, allocations: 86.19 kB / 351.1 MB, free: 5.242 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.566e-05/0.02789, allocations: 326 kB / 351.5 MB, free: 4.918 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000196/0.02808, allocations: 140.9 kB / 351.6 MB, free: 4.777 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.02831, allocations: 217.1 kB / 351.8 MB, free: 4.539 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004333/0.02875, allocations: 389.5 kB / 352.2 MB, free: 4.129 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.02875, allocations: 4 kB / 352.2 MB, free: 4.125 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008062/0.02955, allocations: 0.6947 MB / 352.9 MB, free: 3.422 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.02957, allocations: 11.06 kB / 352.9 MB, free: 3.414 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.02958, allocations: 7.938 kB / 352.9 MB, free: 3.406 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.02959, allocations: 7.984 kB / 352.9 MB, free: 3.398 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002556/0.02985, allocations: 119.9 kB / 353 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.02985, allocations: 4 kB / 353 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001966/0.03005, allocations: 19.88 kB / 353.1 MB, free: 3.258 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.03007, allocations: 23.98 kB / 353.1 MB, free: 3.234 MB / 314.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.0006486/0.03072, allocations: 0.9115 MB / 354 MB, free: 2.312 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/0.03089, allocations: 286 kB / 354.3 MB, free: 2.031 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007933/0.03168, allocations: 0.7957 MB / 355.1 MB, free: 1.23 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.03169, allocations: 8 kB / 355.1 MB, free: 1.223 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.03169, allocations: 3.938 kB / 355.1 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.0317, allocations: 3.984 kB / 355.1 MB, free: 1.215 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001232/0.03293, allocations: 1.238 MB / 356.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.03293, allocations: 0 / 356.3 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002185/0.03315, allocations: 99.88 kB / 356.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002051/0.03336, allocations: 92.75 kB / 356.5 MB, free: 15.74 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.246e-05/0.03338, allocations: 19.92 kB / 356.5 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003451/0.03372, allocations: 0.6304 MB / 357.2 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.03372, allocations: 0 / 357.2 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009497/0.03467, allocations: 1.093 MB / 358.3 MB, free: 13.95 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004232/0.0351, allocations: 430 kB / 358.7 MB, free: 13.53 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.91e-05/0.0352, allocations: 8 kB / 358.7 MB, free: 13.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002303/0.03543, allocations: 19.98 kB / 358.7 MB, free: 13.5 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.584e-05/0.03548, allocations: 36.44 kB / 358.7 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.835e-05/0.0355, allocations: 15.98 kB / 358.8 MB, free: 13.45 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002881/0.03838, allocations: 3.97 MB / 362.7 MB, free: 9.488 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.03838, allocations: 0 / 362.7 MB, free: 9.488 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003795/0.03876, allocations: 207.9 kB / 362.9 MB, free: 9.285 MB / 330.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.00192/0.04068, allocations: 1.97 MB / 364.9 MB, free: 7.469 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004391/0.04112, allocations: 358.2 kB / 365.2 MB, free: 7.117 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.04112, allocations: 0 / 365.2 MB, free: 7.117 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002487/0.04137, allocations: 215.2 kB / 365.5 MB, free: 6.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006315/0.042, allocations: 189.8 kB / 365.6 MB, free: 6.727 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02246/0.06446, allocations: 19.23 MB / 384.9 MB, free: 3.301 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009562/0.06542, allocations: 1.245 MB / 386.1 MB, free: 2.02 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003331/0.06575, allocations: 271.5 kB / 386.4 MB, free: 1.75 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007132/0.06646, allocations: 0.9299 MB / 387.3 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/0.06646, allocations: 0 / 387.3 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04664/0.1131, allocations: 39.79 MB / 427.1 MB, free: 9.227 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.657/9.77, allocations: 4.062 kB / 427.1 MB, free: 9.223 MB / 394.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.602971250191331]