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.001339/0.001339, allocations: 128.4 kB / 17.79 MB, free: 5.242 MB / 14.72 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.001384/0.001384, allocations: 210.5 kB / 20.75 MB, free: 2.293 MB / 14.72 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 1.536/1.536, allocations: 230.4 MB / 254 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001861/0.001861, allocations: 71.88 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1124, allocations: 53.38 MB / 426.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005432/0.1178, allocations: 3.457 MB / 429.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2162/0.334, allocations: 1.656 MB / 431.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004475/0.3345, allocations: 10.22 kB / 431.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00315/0.3376, allocations: 2.661 MB / 434.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006849/0.3383, allocations: 228.2 kB / 434.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007943/0.3391, allocations: 314.6 kB / 434.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002266/0.3414, allocations: 1.823 MB / 436.5 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001979/0.3416, allocations: 95.42 kB / 436.6 MB, free: 7.387 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004848/0.3421, allocations: 332.6 kB / 436.9 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004076/0.3425, allocations: 354 kB / 437.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.3426, allocations: 44.12 kB / 437.3 MB, free: 7.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002203/0.3428, allocations: 91.59 kB / 437.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007951/0.3436, allocations: 0.8501 MB / 438.2 MB, free: 7.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006098/0.3442, allocations: 0.9405 MB / 439.2 MB, free: 6.723 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002818/0.347, allocations: 2.656 MB / 441.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.347, allocations: 1 kB / 441.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.347, allocations: 0.75 kB / 441.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.248e-05/0.3471, allocations: 0 / 441.8 MB, free: 6.121 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.004188/0.3513, allocations: 2.918 MB / 444.8 MB, free: 4.156 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.3513, allocations: 13.5 kB / 444.8 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.793e-05/0.3514, allocations: 71.52 kB / 444.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004762/0.3519, allocations: 308.4 kB / 445.1 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002318/0.3542, allocations: 1.863 MB / 447 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.854e-05/0.3543, allocations: 57.17 kB / 447.1 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001695/0.3544, allocations: 52.5 kB / 447.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006777/0.3551, allocations: 399.2 kB / 447.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.3551, allocations: 1.375 kB / 447.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.3552, allocations: 14.75 kB / 447.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.3552, allocations: 10.61 kB / 447.5 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006936/0.3559, allocations: 325.4 kB / 447.8 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003834/0.3597, allocations: 2.91 MB / 450.8 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000593/0.3603, allocations: 297.2 kB / 451 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002867/0.3606, allocations: 161.2 kB / 451.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.618e-05/0.3606, allocations: 12.58 kB / 451.2 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.828e-05/0.3606, allocations: 37.78 kB / 451.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.894e-06/0.3606, allocations: 0 / 451.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.005266/0.3659, allocations: 2.465 MB / 453.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/0.366, allocations: 89.88 kB / 453.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008015/0.374, allocations: 5.455 MB / 459.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001182/0.3741, allocations: 40.55 kB / 459.3 MB, free: 12.44 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001304/0.3754, allocations: 1.188 MB / 460.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.3756, allocations: 173.3 kB / 460.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001697/0.3758, allocations: 89.39 kB / 460.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3759, allocations: 330.2 kB / 461.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003761/0.3763, allocations: 136.4 kB / 461.2 MB, free: 10.84 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004194/0.3767, allocations: 221.5 kB / 461.4 MB, free: 10.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007702/0.3775, allocations: 387.9 kB / 461.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.3775, allocations: 3.938 kB / 461.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001731/0.3792, allocations: 0.7005 MB / 462.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.3793, allocations: 5.438 kB / 462.5 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.3793, allocations: 7.031 kB / 462.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.497e-05/0.3793, allocations: 4.344 kB / 462.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005219/0.3798, allocations: 122.6 kB / 462.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.3798, allocations: 3.5 kB / 462.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000549/0.3804, allocations: 18.59 kB / 462.7 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.3804, allocations: 21.89 kB / 462.7 MB, free: 10.01 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.001345/0.3818, allocations: 0.9243 MB / 463.6 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004253/0.3822, allocations: 287.7 kB / 463.9 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.3839, allocations: 0.7915 MB / 464.7 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.3839, allocations: 5.25 kB / 464.7 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.3839, allocations: 1.375 kB / 464.7 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.3839, allocations: 3.984 kB / 464.7 MB, free: 8.957 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002103/0.386, allocations: 1.482 MB / 466.2 MB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.386, allocations: 0 / 466.2 MB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004683/0.3865, allocations: 95.88 kB / 466.3 MB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003719/0.3868, allocations: 104.4 kB / 466.4 MB, free: 7.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.003e-05/0.3869, allocations: 8 kB / 466.4 MB, free: 7.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006771/0.3875, allocations: 0.6266 MB / 467 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/0.3875, allocations: 2.156 kB / 467 MB, free: 6.859 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001849/0.3894, allocations: 1.096 MB / 468.1 MB, free: 5.746 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008083/0.3902, allocations: 0.503 MB / 468.6 MB, free: 5.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001908/0.3904, allocations: 12 kB / 468.6 MB, free: 5.211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004881/0.3909, allocations: 19.98 kB / 468.6 MB, free: 5.191 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.924e-05/0.391, allocations: 24.41 kB / 468.7 MB, free: 5.168 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.374e-05/0.391, allocations: 16.67 kB / 468.7 MB, free: 5.152 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005946/0.3969, allocations: 3.99 MB / 472.7 MB, free: 1.172 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3969, allocations: 0 / 472.7 MB, free: 1.172 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001122/0.3981, allocations: 204 kB / 472.9 MB, free: 0.9727 MB / 366.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.003854/0.4019, allocations: 1.938 MB / 474.8 MB, free: 15.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009335/0.4028, allocations: 360.8 kB / 475.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4028, allocations: 0 / 475.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005124/0.4034, allocations: 214.8 kB / 475.4 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001347/0.4047, allocations: 191.5 kB / 475.5 MB, free: 14.42 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05058/0.4553, allocations: 19.42 MB / 495 MB, free: 10.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002221/0.4575, allocations: 1.825 MB / 496.8 MB, free: 8.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008706/0.4584, allocations: 275.8 kB / 497.1 MB, free: 8.707 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001617/0.46, allocations: 0.9328 MB / 498 MB, free: 7.773 MB / 398.1 MB Notification: Performance of SimCode: time 8.02e-07/0.46, allocations: 0 / 498 MB, free: 7.773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08843/0.5484, allocations: 39 MB / 0.5244 GB, free: 1.008 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.22/18.77, allocations: 0 / 0.5244 GB, free: 1.008 MB / 430.1 MB " [Timeout remaining time 641] (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/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_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: 21.796668889932334]