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.001732/0.001732, allocations: 115.8 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.001938/0.001938, allocations: 216.6 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.519/1.519, allocations: 230.6 MB / 257.5 MB, free: 8.02 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="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 0.001631/0.001631, allocations: 55.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2953, allocations: 53.35 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.006694/0.302, allocations: 3.494 MB / 434.6 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00354/0.3055, allocations: 1.675 MB / 436.3 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005322/0.306, allocations: 7.938 kB / 436.3 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003779/0.3098, allocations: 2.671 MB / 439 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007797/0.3106, allocations: 222.6 kB / 439.2 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009053/0.3115, allocations: 330.9 kB / 439.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002786/0.3143, allocations: 1.817 MB / 441.3 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000273/0.3146, allocations: 102 kB / 441.4 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000627/0.3152, allocations: 325 kB / 441.8 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006572/0.3158, allocations: 362.6 kB / 442.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000152/0.316, allocations: 48 kB / 442.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002952/0.3163, allocations: 95.97 kB / 442.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007558/0.317, allocations: 0.8414 MB / 443.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008971/0.3179, allocations: 0.9423 MB / 444 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002669/0.3206, allocations: 2.649 MB / 446.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3206, allocations: 4 kB / 446.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3206, allocations: 3.938 kB / 446.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.014e-05/0.3206, allocations: 0 / 446.7 MB, free: 7.25 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.004323/0.325, allocations: 2.84 MB / 449.5 MB, free: 4.359 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.325, allocations: 8.031 kB / 449.5 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.612e-05/0.3251, allocations: 70.72 kB / 449.6 MB, free: 4.273 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004935/0.3256, allocations: 314.9 kB / 449.9 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002819/0.3284, allocations: 1.798 MB / 451.7 MB, free: 2.129 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/0.3285, allocations: 114.4 kB / 451.8 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00017/0.3287, allocations: 51.92 kB / 451.9 MB, free: 1.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007275/0.3294, allocations: 391 kB / 452.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.3295, allocations: 0 / 452.3 MB, free: 1.555 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.614e-05/0.3295, allocations: 16 kB / 452.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.3295, allocations: 8 kB / 452.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007159/0.3302, allocations: 331.7 kB / 452.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004481/0.3347, allocations: 2.865 MB / 455.5 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006332/0.3353, allocations: 306.6 kB / 455.8 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/0.3356, allocations: 160.7 kB / 455.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.3357, allocations: 8 kB / 455.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.3357, allocations: 39.09 kB / 456 MB, free: 13.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.355e-06/0.3357, allocations: 0 / 456 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.004881/0.3406, allocations: 2.402 MB / 458.4 MB, free: 11.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.78e-05/0.3407, allocations: 81.55 kB / 458.5 MB, free: 11.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006988/0.3476, allocations: 5.456 MB / 463.9 MB, free: 5.711 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001002/0.3477, allocations: 33.7 kB / 463.9 MB, free: 5.672 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001261/0.349, allocations: 1.192 MB / 465.1 MB, free: 4.477 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002221/0.3492, allocations: 174.5 kB / 465.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/0.3494, allocations: 90.14 kB / 465.4 MB, free: 4.211 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.3495, allocations: 329.9 kB / 465.7 MB, free: 3.883 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003719/0.3499, allocations: 136.9 kB / 465.9 MB, free: 3.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004084/0.3503, allocations: 221.1 kB / 466.1 MB, free: 3.504 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007244/0.3511, allocations: 388.2 kB / 466.4 MB, free: 3.098 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3511, allocations: 0 / 466.4 MB, free: 3.098 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001353/0.3524, allocations: 0.7011 MB / 467.1 MB, free: 2.391 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.3524, allocations: 4 kB / 467.2 MB, free: 2.387 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.3524, allocations: 4 kB / 467.2 MB, free: 2.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.3525, allocations: 4 kB / 467.2 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005117/0.353, allocations: 120.1 kB / 467.3 MB, free: 2.262 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/0.353, allocations: 11.98 kB / 467.3 MB, free: 2.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004859/0.3535, allocations: 23.98 kB / 467.3 MB, free: 2.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.86e-05/0.3535, allocations: 16 kB / 467.3 MB, free: 2.211 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.001397/0.3549, allocations: 0.923 MB / 468.2 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003455/0.3553, allocations: 286.1 kB / 468.5 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001528/0.3568, allocations: 0.7865 MB / 469.3 MB, free: 200 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.3568, allocations: 4 kB / 469.3 MB, free: 196 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.3568, allocations: 0 / 469.3 MB, free: 196 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.3568, allocations: 7.984 kB / 469.3 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/0.3587, allocations: 1.457 MB / 470.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3587, allocations: 0 / 470.8 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004371/0.3591, allocations: 91.88 kB / 470.9 MB, free: 14.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003627/0.3595, allocations: 100.7 kB / 471 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.22e-05/0.3595, allocations: 12 kB / 471 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006274/0.3602, allocations: 0.6304 MB / 471.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3602, allocations: 0 / 471.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001729/0.3619, allocations: 1.102 MB / 472.7 MB, free: 12.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009212/0.3628, allocations: 438 kB / 473.1 MB, free: 12.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/0.363, allocations: 8 kB / 473.2 MB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004476/0.3634, allocations: 19.98 kB / 473.2 MB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.741e-05/0.3635, allocations: 32.38 kB / 473.2 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.691e-05/0.3635, allocations: 12 kB / 473.2 MB, free: 12.2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005209/0.3688, allocations: 3.986 MB / 477.2 MB, free: 8.223 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3688, allocations: 0 / 477.2 MB, free: 8.223 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008831/0.3696, allocations: 211.9 kB / 477.4 MB, free: 8.016 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.003661/0.3733, allocations: 1.94 MB / 479.3 MB, free: 6.203 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008537/0.3741, allocations: 356.8 kB / 479.7 MB, free: 5.855 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.3742, allocations: 0 / 479.7 MB, free: 5.855 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004774/0.3746, allocations: 214.8 kB / 479.9 MB, free: 5.648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.3759, allocations: 185.9 kB / 480.1 MB, free: 5.469 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03994/0.4159, allocations: 19.42 MB / 499.5 MB, free: 1.867 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00173/0.4176, allocations: 1.825 MB / 0.4896 GB, free: 8 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006431/0.4182, allocations: 279.8 kB / 0.4898 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.4194, allocations: 0.9367 MB / 0.4908 GB, free: 14.79 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4194, allocations: 0 / 0.4908 GB, free: 14.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09095/0.5104, allocations: 39.29 MB / 0.5291 GB, free: 7.668 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.55/19.06, allocations: 11.92 kB / 0.5291 GB, free: 7.656 MB / 446.1 MB " [Timeout remaining time 641] (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: 22.14626140310429]