Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.001788/0.001788, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.00244/0.00244, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.517/1.517, allocations: 230.6 MB / 257.5 MB, free: 8.035 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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 47.92 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2977, allocations: 53.37 MB / 431.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00641/0.3041, allocations: 4.42 MB / 435.6 MB, free: 2.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003362/0.3074, allocations: 1.667 MB / 437.2 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005046/0.308, allocations: 11.94 kB / 437.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004076/0.3084, allocations: 128.5 kB / 437.4 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008504/0.3092, allocations: 369.6 kB / 437.7 MB, free: 268 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004833/0.3097, allocations: 243.6 kB / 438 MB, free: 24 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001024/0.3107, allocations: 0.9824 MB / 438.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002981/0.311, allocations: 166 kB / 439.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005127/0.3115, allocations: 382.8 kB / 439.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005667/0.3121, allocations: 442.2 kB / 439.9 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001246/0.3122, allocations: 96 kB / 440 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003796/0.3126, allocations: 211.9 kB / 440.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001648/0.3128, allocations: 199.3 kB / 440.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003776/0.3131, allocations: 422 kB / 440.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001293/0.3144, allocations: 1.171 MB / 442 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3144, allocations: 0 / 442 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.3144, allocations: 0 / 442 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.485e-05/0.3145, allocations: 0 / 442 MB, free: 11.98 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002713/0.3172, allocations: 1.054 MB / 443 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.3172, allocations: 8.031 kB / 443.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001331/0.3174, allocations: 98.7 kB / 443.1 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002419/0.3176, allocations: 88.45 kB / 443.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008419/0.3184, allocations: 461.5 kB / 443.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001312/0.3186, allocations: 131 kB / 443.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002087/0.3188, allocations: 72.23 kB / 443.9 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001146/0.3199, allocations: 0.5981 MB / 444.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.109e-05/0.3199, allocations: 0 / 444.5 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.64e-05/0.32, allocations: 24 kB / 444.5 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.653e-05/0.32, allocations: 20 kB / 444.5 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.3212, allocations: 0.5243 MB / 445 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003722/0.3249, allocations: 2.251 MB / 447.3 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000993/0.3259, allocations: 453.2 kB / 447.7 MB, free: 6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005374/0.3264, allocations: 254 kB / 448 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.3265, allocations: 4 kB / 448 MB, free: 5.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.464e-05/0.3265, allocations: 50.44 kB / 448 MB, free: 5.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.004e-06/0.3265, allocations: 0 / 448 MB, free: 5.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01305/0.3396, allocations: 3.332 MB / 451.4 MB, free: 2.316 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.3396, allocations: 81.61 kB / 451.5 MB, free: 2.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007882/0.3404, allocations: 0.5371 MB / 452 MB, free: 1.672 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.637e-05/0.3405, allocations: 37.7 kB / 452 MB, free: 1.629 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000255/0.3407, allocations: 324.8 kB / 452.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001906/0.3409, allocations: 218.2 kB / 452.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002094/0.3411, allocations: 114.3 kB / 452.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001911/0.3413, allocations: 370.8 kB / 453 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005659/0.3419, allocations: 249.2 kB / 453.3 MB, free: 372 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006443/0.3425, allocations: 348.5 kB / 453.6 MB, free: 15.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001226/0.3437, allocations: 0.5993 MB / 454.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.3437, allocations: 8 kB / 454.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001553/0.3453, allocations: 0.7438 MB / 455 MB, free: 14.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3453, allocations: 4 kB / 455 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.3453, allocations: 7.938 kB / 455 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000174/0.3455, allocations: 36.81 kB / 455 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000814/0.3463, allocations: 167.8 kB / 455.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.3475, allocations: 1.33 MB / 456.5 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005733/0.3481, allocations: 35.92 kB / 456.5 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.264e-05/0.3482, allocations: 31.97 kB / 456.6 MB, free: 12.86 MB / 366.1 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.0003032/0.3485, allocations: 201.7 kB / 456.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.3486, allocations: 71.56 kB / 456.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001858/0.3505, allocations: 0.8281 MB / 457.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.196e-05/0.3505, allocations: 11.94 kB / 457.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.3505, allocations: 4 kB / 457.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.916e-06/0.3505, allocations: 3.984 kB / 457.7 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003857/0.3543, allocations: 1.804 MB / 459.5 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.3544, allocations: 0 / 459.5 MB, free: 9.867 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005265/0.3549, allocations: 111.9 kB / 459.6 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002304/0.3572, allocations: 480.2 kB / 460.1 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.943e-05/0.3572, allocations: 12 kB / 460.1 MB, free: 9.273 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005231/0.3625, allocations: 3.051 MB / 463.1 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3625, allocations: 0 / 463.1 MB, free: 6.109 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003036/0.3655, allocations: 1.362 MB / 464.5 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003291/0.3658, allocations: 131.5 kB / 464.6 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.016e-05/0.3659, allocations: 12 kB / 464.6 MB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000604/0.3665, allocations: 47.97 kB / 464.7 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000134/0.3667, allocations: 48.64 kB / 464.7 MB, free: 4.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.413e-05/0.3667, allocations: 23.98 kB / 464.8 MB, free: 4.465 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005267/0.3672, allocations: 394.8 kB / 465.1 MB, free: 4.082 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3672, allocations: 3.938 kB / 465.1 MB, free: 4.078 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007209/0.3679, allocations: 184.1 kB / 465.3 MB, free: 3.898 MB / 366.1 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.003543/0.3715, allocations: 1.964 MB / 467.3 MB, free: 1.906 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.373, allocations: 0.7149 MB / 468 MB, free: 1.176 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.373, allocations: 0 / 468 MB, free: 1.176 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009415/0.374, allocations: 0.4988 MB / 468.5 MB, free: 0.668 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000722/0.3747, allocations: 91.44 kB / 468.6 MB, free: 0.582 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009851/0.3845, allocations: 5.937 MB / 474.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005833/0.3851, allocations: 0.9042 MB / 475.4 MB, free: 9.555 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003452/0.3855, allocations: 76.73 kB / 475.5 MB, free: 9.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004009/0.3859, allocations: 243.3 kB / 475.7 MB, free: 9.242 MB / 382.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3859, allocations: 0 / 475.7 MB, free: 9.242 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05442/0.4403, allocations: 16.35 MB / 492.1 MB, free: 9.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/14.61, allocations: 4.734 kB / 492.1 MB, free: 9.129 MB / 398.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --stepSize=2e-05 --timeout=50 --tolerance=0.0001 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 17.34004659205675]