Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00125/0.00125, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001291/0.001291, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8933/0.8933, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 324.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.099e-05/2.29e-05, allocations: 2.281 kB / 324.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00451/0.004533, allocations: 3.203 MB / 327.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.006741, allocations: 1.612 MB / 329.3 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.006894, allocations: 11.94 kB / 329.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001861/0.008756, allocations: 2.67 MB / 332 MB, free: 8.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004015/0.009157, allocations: 238.4 kB / 332.2 MB, free: 7.996 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.009622, allocations: 326.3 kB / 332.6 MB, free: 7.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001079/0.0107, allocations: 1.84 MB / 334.4 MB, free: 5.836 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001452/0.01085, allocations: 84.39 kB / 334.5 MB, free: 5.754 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003795/0.01123, allocations: 433.1 kB / 334.9 MB, free: 5.332 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002535/0.01148, allocations: 295.3 kB / 335.2 MB, free: 5.043 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.301e-05/0.01153, allocations: 44 kB / 335.2 MB, free: 5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001339/0.01167, allocations: 107.7 kB / 335.3 MB, free: 4.895 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004248/0.01209, allocations: 0.8649 MB / 336.2 MB, free: 4.027 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002751/0.01237, allocations: 466.1 kB / 336.7 MB, free: 3.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001416/0.01378, allocations: 2.512 MB / 339.2 MB, free: 1.047 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.01379, allocations: 0 / 339.2 MB, free: 1.047 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.01379, allocations: 0 / 339.2 MB, free: 1.047 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.746e-05/0.0138, allocations: 0 / 339.2 MB, free: 1.047 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.002432/0.01624, allocations: 2.819 MB / 342 MB, free: 14.18 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.01628, allocations: 15.98 kB / 342 MB, free: 14.16 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.307e-05/0.01634, allocations: 78.72 kB / 342.1 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002861/0.01663, allocations: 303 kB / 342.4 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.01821, allocations: 1.805 MB / 344.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.534e-05/0.01829, allocations: 110.7 kB / 344.3 MB, free: 11.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001056/0.0184, allocations: 44.73 kB / 344.3 MB, free: 11.76 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004966/0.0189, allocations: 448 kB / 344.8 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.01891, allocations: 7.984 kB / 344.8 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.01894, allocations: 16 kB / 344.8 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.01895, allocations: 8 kB / 344.8 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000428/0.01937, allocations: 331.7 kB / 345.1 MB, free: 10.94 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002432/0.02181, allocations: 2.632 MB / 347.8 MB, free: 8.215 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004004/0.02221, allocations: 297.1 kB / 348.1 MB, free: 7.906 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.02239, allocations: 169.6 kB / 348.2 MB, free: 7.734 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.842e-05/0.02242, allocations: 4 kB / 348.2 MB, free: 7.73 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.02244, allocations: 38.56 kB / 348.3 MB, free: 7.684 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 2.444e-06/0.02245, allocations: 3.984 kB / 348.3 MB, free: 7.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.0028/0.02525, allocations: 2.396 MB / 350.7 MB, free: 5.242 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.02529, allocations: 85.61 kB / 350.8 MB, free: 5.141 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00411/0.0294, allocations: 5.463 MB / 356.2 MB, free: 15.68 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.055e-05/0.02944, allocations: 33.7 kB / 356.2 MB, free: 15.64 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007199/0.03016, allocations: 1.184 MB / 357.4 MB, free: 14.45 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.03026, allocations: 170.5 kB / 357.6 MB, free: 14.28 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.917e-05/0.03036, allocations: 94.12 kB / 357.7 MB, free: 14.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.003e-05/0.03044, allocations: 322 kB / 358 MB, free: 13.86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.03065, allocations: 144.9 kB / 358.1 MB, free: 13.72 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.03087, allocations: 221.1 kB / 358.4 MB, free: 13.48 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000431/0.0313, allocations: 381.5 kB / 358.7 MB, free: 13.08 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.03131, allocations: 4 kB / 358.7 MB, free: 13.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007317/0.03204, allocations: 0.6987 MB / 359.4 MB, free: 12.36 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.03206, allocations: 11.84 kB / 359.4 MB, free: 12.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.03206, allocations: 7.938 kB / 359.5 MB, free: 12.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.03208, allocations: 8 kB / 359.5 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002734/0.03236, allocations: 119.8 kB / 359.6 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.03236, allocations: 4 kB / 359.6 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002296/0.03259, allocations: 27.86 kB / 359.6 MB, free: 12.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.03261, allocations: 16 kB / 359.6 MB, free: 12.18 MB / 330.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.0006994/0.03331, allocations: 0.9153 MB / 360.5 MB, free: 11.25 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001866/0.0335, allocations: 286.1 kB / 360.8 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008906/0.03439, allocations: 0.792 MB / 361.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.63e-06/0.0344, allocations: 4 kB / 361.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.0344, allocations: 0 / 361.6 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.03441, allocations: 7.984 kB / 361.6 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001013/0.03542, allocations: 1.25 MB / 362.9 MB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.03542, allocations: 0 / 362.9 MB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002406/0.03567, allocations: 99.88 kB / 363 MB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002446/0.03591, allocations: 84.75 kB / 363.1 MB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.268e-05/0.03593, allocations: 15.98 kB / 363.1 MB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003896/0.03632, allocations: 0.6382 MB / 363.7 MB, free: 7.996 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.03632, allocations: 8.016 kB / 363.7 MB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.03738, allocations: 1.093 MB / 364.8 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004721/0.03785, allocations: 426.1 kB / 365.2 MB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.03795, allocations: 8 kB / 365.2 MB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002528/0.03821, allocations: 27.92 kB / 365.3 MB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.669e-05/0.03826, allocations: 36.38 kB / 365.3 MB, free: 6.387 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.03828, allocations: 12 kB / 365.3 MB, free: 6.375 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003131/0.04141, allocations: 3.99 MB / 369.3 MB, free: 2.395 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.04141, allocations: 0 / 369.3 MB, free: 2.395 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004669/0.04188, allocations: 211.9 kB / 369.5 MB, free: 2.188 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.001942/0.04382, allocations: 1.962 MB / 371.5 MB, free: 352 kB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005303/0.04435, allocations: 362.3 kB / 371.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.04435, allocations: 4 kB / 371.8 MB, free: 15.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002785/0.04463, allocations: 199.3 kB / 372 MB, free: 15.79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006961/0.04533, allocations: 195.5 kB / 372.2 MB, free: 15.59 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02546/0.07079, allocations: 19.29 MB / 391.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008989/0.07169, allocations: 1.246 MB / 392.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004091/0.0721, allocations: 283.8 kB / 393 MB, free: 10.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007314/0.07283, allocations: 0.9338 MB / 394 MB, free: 9.629 MB / 362.7 MB Notification: Performance of SimCode: time 1.463e-06/0.07283, allocations: 0 / 394 MB, free: 9.629 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05596/0.1288, allocations: 39.99 MB / 433.9 MB, free: 1.773 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.155/9.283, allocations: 7.938 kB / 434 MB, free: 1.766 MB / 394.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.28422461822629]