Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.001277/0.001277, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001406/0.001406, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.371/1.371, allocations: 230.6 MB / 258.3 MB, free: 8 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.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001423/0.001423, allocations: 47.92 kB / 378.6 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.243, allocations: 53.36 MB / 431.9 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004442/0.2474, allocations: 2.883 MB / 434.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002147/0.2496, allocations: 1.3 MB / 436.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.2497, allocations: 7.938 kB / 436.1 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002767/0.25, allocations: 67.42 kB / 436.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005307/0.2505, allocations: 231.8 kB / 436.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.2508, allocations: 135.8 kB / 436.5 MB, free: 2.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000477/0.2513, allocations: 463.1 kB / 437 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/0.2514, allocations: 60.88 kB / 437 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002919/0.2517, allocations: 195.4 kB / 437.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003061/0.252, allocations: 223.1 kB / 437.5 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.018e-05/0.2521, allocations: 40 kB / 437.5 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002854/0.2524, allocations: 171.9 kB / 437.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.081e-05/0.2525, allocations: 91.7 kB / 437.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.2526, allocations: 187.2 kB / 437.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005946/0.2532, allocations: 0.5055 MB / 438.4 MB, free: 308 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.2532, allocations: 0 / 438.4 MB, free: 308 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2532, allocations: 0 / 438.4 MB, free: 308 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.383e-06/0.2532, allocations: 7.938 kB / 438.4 MB, free: 300 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001566/0.2548, allocations: 0.6531 MB / 439.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.2548, allocations: 8.031 kB / 439.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.974e-05/0.2549, allocations: 8.688 kB / 439.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.938e-05/0.2549, allocations: 58.73 kB / 439.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.2551, allocations: 44.73 kB / 439.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004691/0.2556, allocations: 283.2 kB / 439.5 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.2557, allocations: 106.3 kB / 439.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.2558, allocations: 40.06 kB / 439.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006017/0.2564, allocations: 329.5 kB / 440 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.2565, allocations: 0 / 440 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.2565, allocations: 12 kB / 440 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.785e-06/0.2565, allocations: 8 kB / 440 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006708/0.2572, allocations: 297.8 kB / 440.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.2589, allocations: 1.116 MB / 441.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005945/0.2595, allocations: 284.1 kB / 441.7 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003209/0.2598, allocations: 149.7 kB / 441.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.2598, allocations: 7.938 kB / 441.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.2598, allocations: 42.5 kB / 441.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.483e-06/0.2599, allocations: 0 / 441.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.008933/0.2688, allocations: 2.272 MB / 444.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.469e-05/0.2688, allocations: 85.11 kB / 444.2 MB, free: 10.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003584/0.2692, allocations: 301 kB / 444.5 MB, free: 9.977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/0.2692, allocations: 29.7 kB / 444.5 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.2694, allocations: 168.7 kB / 444.7 MB, free: 9.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.2695, allocations: 158.6 kB / 444.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.2696, allocations: 78.11 kB / 444.9 MB, free: 9.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.2698, allocations: 342.7 kB / 445.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004045/0.2702, allocations: 168.8 kB / 445.4 MB, free: 9.02 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004352/0.2706, allocations: 226.6 kB / 445.7 MB, free: 8.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008353/0.2715, allocations: 399.8 kB / 446 MB, free: 8.371 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.2715, allocations: 0 / 446 MB, free: 8.371 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001094/0.2726, allocations: 488.6 kB / 446.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.2726, allocations: 4.188 kB / 446.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.009e-05/0.2726, allocations: 8 kB / 446.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.2726, allocations: 4 kB / 446.5 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006039/0.2732, allocations: 119.8 kB / 446.7 MB, free: 7.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.2732, allocations: 4 kB / 446.7 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003947/0.2736, allocations: 23.98 kB / 446.7 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.029e-05/0.2737, allocations: 23.98 kB / 446.7 MB, free: 7.703 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 52 * 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.0002662/0.2739, allocations: 169.5 kB / 446.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001085/0.274, allocations: 31.81 kB / 446.9 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001881/0.2759, allocations: 0.6447 MB / 447.5 MB, free: 6.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.2759, allocations: 12 kB / 447.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.2759, allocations: 0 / 447.6 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.2759, allocations: 3.984 kB / 447.6 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.2791, allocations: 1.243 MB / 448.8 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.2791, allocations: 0 / 448.8 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004395/0.2795, allocations: 91.89 kB / 448.9 MB, free: 5.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001527/0.2811, allocations: 276.4 kB / 449.2 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.821e-05/0.2811, allocations: 12 kB / 449.2 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004024/0.2851, allocations: 2.336 MB / 451.5 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2851, allocations: 4.031 kB / 451.5 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00232/0.2874, allocations: 1.007 MB / 452.5 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.2876, allocations: 75.73 kB / 452.6 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.203e-05/0.2877, allocations: 12 kB / 452.6 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004206/0.2881, allocations: 27.97 kB / 452.6 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.2882, allocations: 40.36 kB / 452.7 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-05/0.2882, allocations: 12 kB / 452.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002388/0.2885, allocations: 212.5 kB / 452.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2885, allocations: 192 / 452.9 MB, free: 1.297 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005528/0.289, allocations: 127.8 kB / 453 MB, free: 1.172 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * 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 (40): * Single equations (assignments): 39 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002795/0.2918, allocations: 1.589 MB / 454.6 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009825/0.2928, allocations: 406.3 kB / 455 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2928, allocations: 4.062 kB / 455 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007/0.2935, allocations: 368.9 kB / 455.4 MB, free: 14.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.294, allocations: 40.48 kB / 455.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00584/0.2998, allocations: 3.879 MB / 459.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004174/0.3002, allocations: 0.7892 MB / 460.1 MB, free: 9.918 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000194/0.3004, allocations: 42.95 kB / 460.1 MB, free: 9.879 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002314/0.3007, allocations: 119.4 kB / 460.2 MB, free: 9.762 MB / 366.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3007, allocations: 4 kB / 460.2 MB, free: 9.758 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03672/0.3374, allocations: 10.11 MB / 470.3 MB, free: 15.82 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.73, allocations: 4.062 kB / 470.4 MB, free: 15.82 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=0.0001 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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: 15.270340234041214]