Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001441/0.001441, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001529/0.001529, allocations: 208.3 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.41/1.41, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002005/0.002005, allocations: 55.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2773, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005197/0.2825, allocations: 3.193 MB / 434.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002782/0.2853, allocations: 1.605 MB / 435.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002537/0.2855, allocations: 15.94 kB / 435.9 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003198/0.2887, allocations: 2.651 MB / 438.5 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005517/0.2893, allocations: 234.4 kB / 438.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007514/0.29, allocations: 326.3 kB / 439.1 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001905/0.2919, allocations: 1.829 MB / 440.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.2921, allocations: 98.06 kB / 441 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004764/0.2926, allocations: 325 kB / 441.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000468/0.2931, allocations: 354.8 kB / 441.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.386e-05/0.2932, allocations: 48 kB / 441.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002182/0.2934, allocations: 87.98 kB / 441.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007411/0.2941, allocations: 0.8569 MB / 442.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006631/0.2948, allocations: 0.6666 MB / 443.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002687/0.2975, allocations: 2.676 MB / 446 MB, free: 7.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.2975, allocations: 0 / 446 MB, free: 7.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2975, allocations: 4 kB / 446 MB, free: 7.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.08e-05/0.2975, allocations: 0 / 446 MB, free: 7.656 MB / 350.1 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.004499/0.302, allocations: 2.842 MB / 448.9 MB, free: 4.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.3021, allocations: 8.031 kB / 448.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.234e-05/0.3022, allocations: 78.7 kB / 448.9 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005425/0.3027, allocations: 302.9 kB / 449.2 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002821/0.3055, allocations: 1.814 MB / 451.1 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.3056, allocations: 110.4 kB / 451.2 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001938/0.3058, allocations: 43.98 kB / 451.2 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007988/0.3066, allocations: 454.3 kB / 451.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.575e-05/0.3066, allocations: 0 / 451.7 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.984e-05/0.3067, allocations: 16 kB / 451.7 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.029e-05/0.3067, allocations: 8 kB / 451.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000733/0.3074, allocations: 323.8 kB / 452 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004312/0.3117, allocations: 2.635 MB / 454.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006579/0.3124, allocations: 297.1 kB / 454.9 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003392/0.3127, allocations: 165.5 kB / 455.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.3128, allocations: 4 kB / 455.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/0.3128, allocations: 42.5 kB / 455.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.893e-06/0.3128, allocations: 0 / 455.1 MB, free: 14.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.005122/0.3179, allocations: 2.398 MB / 457.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.435e-05/0.318, allocations: 85.55 kB / 457.6 MB, free: 11.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006826/0.3248, allocations: 5.459 MB / 463.1 MB, free: 6.281 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.928e-05/0.3249, allocations: 29.7 kB / 463.1 MB, free: 6.246 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001268/0.3262, allocations: 1.184 MB / 464.3 MB, free: 5.059 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001789/0.3263, allocations: 178.5 kB / 464.5 MB, free: 4.883 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.3265, allocations: 86.22 kB / 464.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.3266, allocations: 334 kB / 464.9 MB, free: 4.461 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003461/0.327, allocations: 136.9 kB / 465 MB, free: 4.328 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003986/0.3274, allocations: 233 kB / 465.2 MB, free: 4.07 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007301/0.3281, allocations: 384.2 kB / 465.6 MB, free: 3.668 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3281, allocations: 0 / 465.6 MB, free: 3.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001344/0.3295, allocations: 0.7013 MB / 466.3 MB, free: 2.961 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3295, allocations: 4 kB / 466.3 MB, free: 2.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.3295, allocations: 4 kB / 466.3 MB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.3295, allocations: 4 kB / 466.3 MB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005419/0.33, allocations: 123.8 kB / 466.4 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.3301, allocations: 4 kB / 466.4 MB, free: 2.824 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004351/0.3305, allocations: 27.88 kB / 466.5 MB, free: 2.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.493e-05/0.3305, allocations: 16 kB / 466.5 MB, free: 2.781 MB / 366.1 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.001153/0.3317, allocations: 0.927 MB / 467.4 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000356/0.332, allocations: 286.1 kB / 467.7 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001561/0.3336, allocations: 0.7865 MB / 468.5 MB, free: 0.7617 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.3336, allocations: 8 kB / 468.5 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3336, allocations: 0 / 468.5 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.3336, allocations: 3.984 kB / 468.5 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001626/0.3352, allocations: 1.246 MB / 469.7 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3352, allocations: 4 kB / 469.7 MB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004807/0.3357, allocations: 95.88 kB / 469.8 MB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003362/0.3361, allocations: 92.73 kB / 469.9 MB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.589e-05/0.3361, allocations: 15.98 kB / 469.9 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006323/0.3367, allocations: 0.6383 MB / 470.6 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3367, allocations: 0 / 470.6 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.3386, allocations: 1.094 MB / 471.7 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.3396, allocations: 430 kB / 472.1 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/0.3397, allocations: 12 kB / 472.1 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004896/0.3402, allocations: 24.05 kB / 472.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.643e-05/0.3403, allocations: 32.38 kB / 472.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.223e-05/0.3403, allocations: 8 kB / 472.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004989/0.3453, allocations: 3.99 MB / 476.2 MB, free: 8.996 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3453, allocations: 0 / 476.2 MB, free: 8.996 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007231/0.3461, allocations: 208 kB / 476.4 MB, free: 8.793 MB / 382.1 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.003574/0.3496, allocations: 1.971 MB / 478.3 MB, free: 6.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008302/0.3505, allocations: 361.3 kB / 478.7 MB, free: 6.629 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3505, allocations: 0 / 478.7 MB, free: 6.629 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004698/0.3509, allocations: 206.4 kB / 478.9 MB, free: 6.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.352, allocations: 192.8 kB / 479.1 MB, free: 6.238 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03766/0.3896, allocations: 19.43 MB / 498.5 MB, free: 2.633 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001619/0.3913, allocations: 1.246 MB / 499.7 MB, free: 1.352 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007224/0.392, allocations: 275.8 kB / 0.4883 GB, free: 1.078 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001417/0.3934, allocations: 0.9445 MB / 0.4892 GB, free: 136 kB / 398.1 MB Notification: Performance of SimCode: time 1.453e-06/0.3934, allocations: 0 / 0.4892 GB, free: 136 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08585/0.4793, allocations: 40.02 MB / 0.5283 GB, free: 8.277 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.2/15.68, allocations: 6.266 kB / 0.5283 GB, free: 8.273 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 18.57868260500254]