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.001521/0.001521, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.00172/0.00172, allocations: 214 kB / 24.52 MB, free: 3.914 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.384/1.384, allocations: 230.6 MB / 258.3 MB, free: 7.746 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 43.92 kB / 378.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2459, allocations: 53.38 MB / 431.9 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005089/0.251, allocations: 3.203 MB / 435.1 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002931/0.2539, allocations: 1.598 MB / 436.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002759/0.2542, allocations: 8 kB / 436.7 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003349/0.2576, allocations: 2.659 MB / 439.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00074/0.2583, allocations: 234.5 kB / 439.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007807/0.2591, allocations: 325.7 kB / 439.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00199/0.2611, allocations: 1.821 MB / 441.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002313/0.2613, allocations: 96.38 kB / 441.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004795/0.2618, allocations: 328.9 kB / 442.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004507/0.2622, allocations: 354.7 kB / 442.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.213e-05/0.2623, allocations: 51.98 kB / 442.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002111/0.2625, allocations: 95.98 kB / 442.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006769/0.2632, allocations: 0.853 MB / 443.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005944/0.2638, allocations: 0.6589 MB / 444.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002493/0.2663, allocations: 2.68 MB / 446.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.613e-06/0.2663, allocations: 0 / 446.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2663, allocations: 0 / 446.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.685e-05/0.2663, allocations: 0 / 446.8 MB, free: 7.664 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.004285/0.2706, allocations: 2.84 MB / 449.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.2707, allocations: 12.03 kB / 449.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.249e-05/0.2707, allocations: 9.188 kB / 449.7 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.433e-05/0.2708, allocations: 74.72 kB / 449.7 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000474/0.2713, allocations: 310.9 kB / 450 MB, free: 4.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002606/0.2739, allocations: 1.802 MB / 451.8 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001289/0.274, allocations: 118.2 kB / 451.9 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.2742, allocations: 40 kB / 452 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008147/0.275, allocations: 450.4 kB / 452.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.275, allocations: 0 / 452.4 MB, free: 1.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.04e-05/0.275, allocations: 16 kB / 452.4 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.275, allocations: 15.94 kB / 452.5 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007559/0.2758, allocations: 323.8 kB / 452.8 MB, free: 1.543 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003977/0.2798, allocations: 2.639 MB / 455.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006632/0.2804, allocations: 304.1 kB / 455.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003156/0.2808, allocations: 156 kB / 455.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.928e-05/0.2808, allocations: 15.94 kB / 455.9 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.509e-05/0.2808, allocations: 38.5 kB / 455.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.964e-06/0.2808, allocations: 0 / 455.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.004845/0.2857, allocations: 2.395 MB / 458.3 MB, free: 11.83 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/0.2857, allocations: 85.55 kB / 458.4 MB, free: 11.73 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006935/0.2927, allocations: 5.455 MB / 463.8 MB, free: 6.273 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001093/0.2928, allocations: 37.64 kB / 463.9 MB, free: 6.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/0.294, allocations: 1.188 MB / 465.1 MB, free: 5.039 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001648/0.2942, allocations: 178.5 kB / 465.2 MB, free: 4.863 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001533/0.2943, allocations: 90.14 kB / 465.3 MB, free: 4.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2945, allocations: 325.9 kB / 465.7 MB, free: 4.445 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.2948, allocations: 140.9 kB / 465.8 MB, free: 4.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003918/0.2952, allocations: 225 kB / 466 MB, free: 4.059 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007035/0.2959, allocations: 376.3 kB / 466.4 MB, free: 3.664 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.2959, allocations: 12 kB / 466.4 MB, free: 3.652 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001368/0.2973, allocations: 0.6933 MB / 467.1 MB, free: 2.953 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.2973, allocations: 8 kB / 467.1 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.2973, allocations: 0 / 467.1 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.2973, allocations: 4.25 kB / 467.1 MB, free: 2.941 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005038/0.2978, allocations: 123.9 kB / 467.2 MB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.337e-05/0.2978, allocations: 11.92 kB / 467.2 MB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004089/0.2983, allocations: 15.98 kB / 467.2 MB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.959e-05/0.2983, allocations: 20 kB / 467.3 MB, free: 2.773 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.001114/0.2994, allocations: 0.9192 MB / 468.2 MB, free: 1.844 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003594/0.2998, allocations: 290 kB / 468.5 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001496/0.3013, allocations: 0.7943 MB / 469.3 MB, free: 0.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.3013, allocations: 4 kB / 469.3 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.3013, allocations: 0 / 469.3 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3013, allocations: 4 kB / 469.3 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001733/0.303, allocations: 1.254 MB / 470.5 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.303, allocations: 4 kB / 470.5 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004424/0.3035, allocations: 91.88 kB / 470.6 MB, free: 15.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003923/0.3039, allocations: 92.78 kB / 470.7 MB, free: 15.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.105e-05/0.3039, allocations: 15.98 kB / 470.7 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006307/0.3045, allocations: 0.6304 MB / 471.4 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/0.3045, allocations: 4.031 kB / 471.4 MB, free: 14.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.3063, allocations: 1.09 MB / 472.4 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007697/0.3071, allocations: 430 kB / 472.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002227/0.3073, allocations: 8 kB / 472.9 MB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005094/0.3078, allocations: 24.11 kB / 472.9 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.704e-05/0.3079, allocations: 36.31 kB / 472.9 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/0.3079, allocations: 19.98 kB / 473 MB, free: 12.96 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005708/0.3137, allocations: 3.99 MB / 476.9 MB, free: 8.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3137, allocations: 0 / 476.9 MB, free: 8.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007458/0.3144, allocations: 211.9 kB / 477.2 MB, free: 8.773 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.003726/0.3181, allocations: 1.962 MB / 479.1 MB, free: 6.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008156/0.3189, allocations: 352.9 kB / 479.5 MB, free: 6.621 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3189, allocations: 0 / 479.5 MB, free: 6.621 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004704/0.3194, allocations: 202.9 kB / 479.7 MB, free: 6.426 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/0.3205, allocations: 204.2 kB / 479.9 MB, free: 6.227 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04253/0.363, allocations: 19.42 MB / 499.3 MB, free: 2.629 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002015/0.365, allocations: 1.246 MB / 0.4888 GB, free: 1.348 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006922/0.3657, allocations: 275.8 kB / 0.4891 GB, free: 1.074 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001389/0.3671, allocations: 0.9406 MB / 0.49 GB, free: 136 kB / 398.1 MB Notification: Performance of SimCode: time 1.403e-06/0.3671, allocations: 0 / 0.49 GB, free: 136 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08266/0.4498, allocations: 39.65 MB / 0.5287 GB, free: 8.867 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.26/17.71, allocations: 8 kB / 0.5287 GB, free: 8.859 MB / 446.1 MB " [Timeout remaining time 642] (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: 20.65490588301327]