Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008288/0.0008288, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007886/0.0007886, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8653/0.8653, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.688e-06/1.09e-05, allocations: 2.281 kB / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003434/0.003445, allocations: 3.942 MB / 322.4 MB, free: 2.387 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.005338, allocations: 1.516 MB / 323.9 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.005556, allocations: 11.94 kB / 323.9 MB, free: 0.8477 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002544/0.00581, allocations: 122.9 kB / 324 MB, free: 0.7266 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005627/0.006373, allocations: 381.2 kB / 324.4 MB, free: 360 kB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002791/0.006652, allocations: 239.6 kB / 324.6 MB, free: 120 kB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006548/0.007307, allocations: 1.005 MB / 325.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002128/0.00752, allocations: 150.1 kB / 325.8 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004644/0.007984, allocations: 0.5535 MB / 326.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002964/0.00828, allocations: 331 kB / 326.7 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.893e-05/0.008359, allocations: 96 kB / 326.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002482/0.008607, allocations: 211.8 kB / 327 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.008712, allocations: 203.3 kB / 327.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004308/0.009142, allocations: 291.3 kB / 327.4 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007971/0.00994, allocations: 1.219 MB / 328.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.009941, allocations: 0 / 328.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.009942, allocations: 0 / 328.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.857e-06/0.009951, allocations: 0 / 328.7 MB, free: 12.07 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001342/0.01129, allocations: 1.027 MB / 329.7 MB, free: 11.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.01133, allocations: 12.03 kB / 329.7 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.937e-05/0.01141, allocations: 94.69 kB / 329.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.353e-05/0.0115, allocations: 88.42 kB / 329.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004773/0.01198, allocations: 464.7 kB / 330.3 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.969e-05/0.01206, allocations: 126.9 kB / 330.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001156/0.01217, allocations: 68.69 kB / 330.5 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006815/0.01285, allocations: 0.7066 MB / 331.2 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.01287, allocations: 0 / 331.2 MB, free: 9.371 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.0129, allocations: 28 kB / 331.3 MB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.01291, allocations: 12 kB / 331.3 MB, free: 9.332 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006539/0.01357, allocations: 0.5204 MB / 331.8 MB, free: 8.812 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.01557, allocations: 2.062 MB / 333.9 MB, free: 6.652 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006779/0.01625, allocations: 452.4 kB / 334.3 MB, free: 6.191 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003053/0.01655, allocations: 250.1 kB / 334.5 MB, free: 5.941 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.01657, allocations: 8 kB / 334.5 MB, free: 5.934 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.0166, allocations: 46.5 kB / 334.6 MB, free: 5.879 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.473e-06/0.0166, allocations: 0 / 334.6 MB, free: 5.879 MB / 298.7 MB Notification: Performance of matching and sorting (n=61): time 0.006142/0.02274, allocations: 3.31 MB / 337.9 MB, free: 2.531 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.361e-05/0.02277, allocations: 85.61 kB / 338 MB, free: 2.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000426/0.0232, allocations: 0.5487 MB / 338.5 MB, free: 1.871 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.02323, allocations: 37.64 kB / 338.6 MB, free: 1.828 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001395/0.02337, allocations: 324.9 kB / 338.9 MB, free: 1.504 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.02348, allocations: 218.1 kB / 339.1 MB, free: 1.289 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000123/0.0236, allocations: 118.3 kB / 339.2 MB, free: 1.168 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.557e-05/0.0237, allocations: 370.7 kB / 339.6 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003238/0.02402, allocations: 241.2 kB / 339.8 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003598/0.02438, allocations: 352.5 kB / 340.2 MB, free: 184 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006977/0.02508, allocations: 0.5993 MB / 340.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.02508, allocations: 0 / 340.8 MB, free: 15.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009357/0.02602, allocations: 0.7436 MB / 341.5 MB, free: 14.79 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.02603, allocations: 11.94 kB / 341.5 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.02604, allocations: 4 kB / 341.5 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001025/0.02614, allocations: 33.09 kB / 341.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/0.02652, allocations: 167.8 kB / 341.7 MB, free: 14.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006353/0.02716, allocations: 1.321 MB / 343 MB, free: 13.14 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.02741, allocations: 48.03 kB / 343.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.001e-05/0.02744, allocations: 23.98 kB / 343.1 MB, free: 13.07 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001731/0.02761, allocations: 205.6 kB / 343.3 MB, free: 12.86 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.187e-05/0.02769, allocations: 63.62 kB / 343.4 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001015/0.0287, allocations: 0.8357 MB / 344.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.02871, allocations: 8 kB / 344.2 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.02871, allocations: 0 / 344.2 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.453e-06/0.02871, allocations: 7.922 kB / 344.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001985/0.0307, allocations: 1.667 MB / 345.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.0307, allocations: 4 kB / 345.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.03095, allocations: 103.9 kB / 346 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001038/0.03199, allocations: 475.7 kB / 346.5 MB, free: 9.641 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.937e-05/0.03202, allocations: 19.92 kB / 346.5 MB, free: 9.621 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002768/0.03478, allocations: 2.985 MB / 349.5 MB, free: 6.527 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.03479, allocations: 3.984 kB / 349.5 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001581/0.03637, allocations: 1.362 MB / 350.8 MB, free: 5.141 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001694/0.03654, allocations: 135.5 kB / 351 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.141e-05/0.03659, allocations: 15.98 kB / 351 MB, free: 4.992 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002644/0.03685, allocations: 43.91 kB / 351 MB, free: 4.949 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.05e-05/0.03693, allocations: 48.56 kB / 351.1 MB, free: 4.902 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.53e-05/0.03696, allocations: 23.92 kB / 351.1 MB, free: 4.879 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002801/0.03724, allocations: 390.9 kB / 351.5 MB, free: 4.5 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.03724, allocations: 0 / 351.5 MB, free: 4.5 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004052/0.03764, allocations: 192.1 kB / 351.7 MB, free: 4.312 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001866/0.03951, allocations: 1.961 MB / 353.6 MB, free: 2.316 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008557/0.04037, allocations: 0.6997 MB / 354.3 MB, free: 1.602 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.04037, allocations: 8.188 kB / 354.3 MB, free: 1.594 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005014/0.04087, allocations: 0.498 MB / 354.8 MB, free: 1.086 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004138/0.04128, allocations: 89.94 kB / 354.9 MB, free: 1 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005547/0.04683, allocations: 5.85 MB / 360.8 MB, free: 10.99 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/0.04701, allocations: 307.2 kB / 361.1 MB, free: 10.66 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000182/0.04719, allocations: 68.81 kB / 361.1 MB, free: 10.6 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002391/0.04743, allocations: 240.4 kB / 361.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of SimCode: time 4.81e-07/0.04743, allocations: 0 / 361.4 MB, free: 10.36 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/0.07739, allocations: 16.52 MB / 377.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.494/8.572, allocations: 8 kB / 377.9 MB, free: 10.1 MB / 346.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --stepSize=2e-05 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.350533890537918]