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.0008036/0.0008036, allocations: 79.7 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.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.0008274/0.0008274, allocations: 174 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8635/0.8635, allocations: 177.1 MB / 204.2 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 1.132e-06/1.132e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.138e-06/1.027e-05, allocations: 6.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.00314/0.00315, allocations: 3.21 MB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.00472, allocations: 1.612 MB / 329.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.004853, allocations: 15.88 kB / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00192/0.006773, allocations: 2.67 MB / 332.1 MB, free: 8.402 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003292/0.007102, allocations: 230.3 kB / 332.3 MB, free: 8.176 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000385/0.007487, allocations: 326.6 kB / 332.6 MB, free: 7.859 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009971/0.008484, allocations: 1.845 MB / 334.5 MB, free: 6.012 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.008624, allocations: 88.38 kB / 334.6 MB, free: 5.926 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003403/0.008964, allocations: 429.1 kB / 335 MB, free: 5.508 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.009207, allocations: 299.2 kB / 335.3 MB, free: 5.215 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.671e-05/0.009264, allocations: 44 kB / 335.3 MB, free: 5.172 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001287/0.009393, allocations: 99.84 kB / 335.4 MB, free: 5.074 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003835/0.009776, allocations: 0.8649 MB / 336.3 MB, free: 4.207 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002662/0.01004, allocations: 470.1 kB / 336.7 MB, free: 3.746 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001461/0.0115, allocations: 2.508 MB / 339.2 MB, free: 1.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.01151, allocations: 4 kB / 339.2 MB, free: 1.227 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.01151, allocations: 0 / 339.2 MB, free: 1.227 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.01152, allocations: 0 / 339.2 MB, free: 1.227 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.002225/0.01374, allocations: 2.816 MB / 342.1 MB, free: 14.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.01378, allocations: 12.03 kB / 342.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.837e-05/0.01384, allocations: 74.72 kB / 342.1 MB, free: 14.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002524/0.01409, allocations: 306.9 kB / 342.4 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001455/0.01555, allocations: 1.801 MB / 344.2 MB, free: 12.12 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.967e-05/0.01563, allocations: 114.7 kB / 344.4 MB, free: 11.99 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001016/0.01573, allocations: 48.48 kB / 344.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004534/0.01618, allocations: 446.4 kB / 344.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.01619, allocations: 0 / 344.8 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.01622, allocations: 16 kB / 344.9 MB, free: 11.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.01622, allocations: 8 kB / 344.9 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004217/0.01665, allocations: 335.7 kB / 345.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002464/0.01911, allocations: 2.624 MB / 347.8 MB, free: 8.414 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004066/0.01952, allocations: 306 kB / 348.1 MB, free: 8.098 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001928/0.01971, allocations: 161.5 kB / 348.3 MB, free: 7.934 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.01974, allocations: 8 kB / 348.3 MB, free: 7.926 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.494e-05/0.01976, allocations: 38.55 kB / 348.3 MB, free: 7.879 MB / 314.7 MB Notification: Performance of pre-optimization done (n=37): time 1.483e-06/0.01977, allocations: 4 kB / 348.3 MB, free: 7.875 MB / 314.7 MB Notification: Performance of matching and sorting (n=48): time 0.002789/0.02256, allocations: 2.396 MB / 350.7 MB, free: 5.438 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.0226, allocations: 81.61 kB / 350.8 MB, free: 5.34 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003898/0.0265, allocations: 5.463 MB / 356.3 MB, free: 15.88 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/0.02652, allocations: 37.64 kB / 356.3 MB, free: 15.83 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006914/0.02721, allocations: 1.184 MB / 357.5 MB, free: 14.64 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.168e-05/0.02729, allocations: 174.5 kB / 357.6 MB, free: 14.47 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.568e-05/0.02738, allocations: 86.19 kB / 357.7 MB, free: 14.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.546e-05/0.02745, allocations: 326 kB / 358.1 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001897/0.02764, allocations: 136.9 kB / 358.2 MB, free: 13.92 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002163/0.02786, allocations: 217.1 kB / 358.4 MB, free: 13.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00042/0.02828, allocations: 385.5 kB / 358.8 MB, free: 13.28 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.02828, allocations: 4 kB / 358.8 MB, free: 13.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006482/0.02893, allocations: 0.7064 MB / 359.5 MB, free: 12.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.37e-05/0.02895, allocations: 8 kB / 359.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.02895, allocations: 3.984 kB / 359.5 MB, free: 12.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.02897, allocations: 4 kB / 359.5 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002633/0.02923, allocations: 124.1 kB / 359.6 MB, free: 12.42 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.02924, allocations: 8 kB / 359.6 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001996/0.02944, allocations: 23.89 kB / 359.7 MB, free: 12.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.295e-05/0.02946, allocations: 23.98 kB / 359.7 MB, free: 12.37 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.0007641/0.03023, allocations: 0.9153 MB / 360.6 MB, free: 11.44 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001846/0.03041, allocations: 290 kB / 360.9 MB, free: 11.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008216/0.03123, allocations: 0.7881 MB / 361.7 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.03124, allocations: 4 kB / 361.7 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.03124, allocations: 0 / 361.7 MB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.03125, allocations: 7.984 kB / 361.7 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009295/0.03218, allocations: 1.246 MB / 362.9 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.03218, allocations: 0 / 362.9 MB, free: 9.055 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002228/0.0324, allocations: 95.88 kB / 363 MB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002109/0.03261, allocations: 96.72 kB / 363.1 MB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.03264, allocations: 15.94 kB / 363.1 MB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003528/0.03299, allocations: 0.6343 MB / 363.8 MB, free: 8.188 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.03299, allocations: 3.938 kB / 363.8 MB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009799/0.03397, allocations: 1.093 MB / 364.9 MB, free: 7.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004285/0.0344, allocations: 430 kB / 365.3 MB, free: 6.648 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.662e-05/0.0345, allocations: 11.94 kB / 365.3 MB, free: 6.637 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.03474, allocations: 19.98 kB / 365.3 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.18e-05/0.03479, allocations: 36.42 kB / 365.3 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.0348, allocations: 16 kB / 365.4 MB, free: 6.566 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002873/0.03768, allocations: 3.986 MB / 369.3 MB, free: 2.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03768, allocations: 0 / 369.3 MB, free: 2.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003895/0.03807, allocations: 211.9 kB / 369.5 MB, free: 2.383 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.001802/0.03987, allocations: 1.964 MB / 371.5 MB, free: 0.5742 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004558/0.04032, allocations: 366.2 kB / 371.9 MB, free: 220 kB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.04033, allocations: 4 kB / 371.9 MB, free: 216 kB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002533/0.04058, allocations: 194.8 kB / 372.1 MB, free: 20 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006775/0.04126, allocations: 202.3 kB / 372.3 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02349/0.06474, allocations: 19.29 MB / 391.6 MB, free: 12.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008799/0.06562, allocations: 1.254 MB / 392.8 MB, free: 11.05 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003625/0.06599, allocations: 279.8 kB / 393.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006884/0.06667, allocations: 0.9338 MB / 394 MB, free: 9.836 MB / 362.7 MB Notification: Performance of SimCode: time 7.51e-07/0.06667, allocations: 0 / 394 MB, free: 9.836 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04552/0.1122, allocations: 40.01 MB / 434 MB, free: 2.02 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.573/8.685, allocations: 8 kB / 434 MB, free: 2.012 MB / 394.7 MB " [Timeout remaining time 651] (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/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_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: 10.468936425633729]