Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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.001465/0.001465, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001823/0.001823, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.457/1.457, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001642/0.001642, allocations: 55.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1043, allocations: 53.33 MB / 426.3 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.2068/0.3111, allocations: 6.452 MB / 432.8 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003139/0.3142, allocations: 1.913 MB / 434.7 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004192/0.3146, allocations: 26.81 kB / 434.7 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005261/0.3151, allocations: 218.8 kB / 434.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007861/0.3159, allocations: 429 kB / 435.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006161/0.3165, allocations: 372.8 kB / 435.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001215/0.3178, allocations: 1.5 MB / 437.2 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004558/0.3182, allocations: 353.8 kB / 437.5 MB, free: 6.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006445/0.3189, allocations: 0.5759 MB / 438.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006369/0.3195, allocations: 0.6174 MB / 438.7 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001887/0.3197, allocations: 158.7 kB / 438.9 MB, free: 5.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002551/0.3199, allocations: 166.2 kB / 439.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001967/0.3201, allocations: 306.8 kB / 439.4 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004861/0.3206, allocations: 0.66 MB / 440 MB, free: 4.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002057/0.3227, allocations: 1.889 MB / 441.9 MB, free: 4.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3227, allocations: 0 / 441.9 MB, free: 4.266 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.3227, allocations: 1.094 kB / 441.9 MB, free: 4.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.68e-05/0.3227, allocations: 0 / 441.9 MB, free: 4.266 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002942/0.3257, allocations: 1.474 MB / 443.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.3257, allocations: 8.625 kB / 443.4 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001745/0.3259, allocations: 152.5 kB / 443.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000537/0.3264, allocations: 155.5 kB / 443.7 MB, free: 3.125 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.3277, allocations: 0.7009 MB / 444.4 MB, free: 2.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.3278, allocations: 75.06 kB / 444.5 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001587/0.3279, allocations: 97.03 kB / 444.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001693/0.3296, allocations: 0.9766 MB / 445.5 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.421e-05/0.3296, allocations: 7.391 kB / 445.5 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.258e-05/0.3297, allocations: 41.86 kB / 445.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.866e-05/0.3298, allocations: 28.03 kB / 445.6 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/0.3312, allocations: 0.793 MB / 446.4 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004896/0.3361, allocations: 3.319 MB / 449.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001413/0.3375, allocations: 0.7504 MB / 450.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007685/0.3383, allocations: 403.6 kB / 450.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.638e-05/0.3384, allocations: 19.88 kB / 450.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.058e-05/0.3384, allocations: 40.42 kB / 450.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=95): time 4.068e-06/0.3384, allocations: 1.594 kB / 450.9 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=119): time 0.009467/0.3479, allocations: 4.218 MB / 455.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.962e-05/0.348, allocations: 88.73 kB / 455.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001005/0.349, allocations: 0.6393 MB / 455.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.183e-05/0.349, allocations: 42.27 kB / 455.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003588/0.3494, allocations: 444.3 kB / 456.3 MB, free: 12.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000394/0.3498, allocations: 428.4 kB / 456.8 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003182/0.3501, allocations: 186.4 kB / 456.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002542/0.3504, allocations: 403.4 kB / 457.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007018/0.3511, allocations: 342.2 kB / 457.7 MB, free: 11.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008389/0.3519, allocations: 491.8 kB / 458.2 MB, free: 10.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/0.3534, allocations: 0.8543 MB / 459 MB, free: 10.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.3534, allocations: 1.625 kB / 459 MB, free: 10.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002207/0.3556, allocations: 1.149 MB / 460.2 MB, free: 9.676 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3557, allocations: 7.469 kB / 460.2 MB, free: 9.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.3557, allocations: 5.781 kB / 460.2 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004177/0.3561, allocations: 128.7 kB / 460.3 MB, free: 9.602 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009983/0.3571, allocations: 240.9 kB / 460.5 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004578/0.3617, allocations: 4.978 MB / 465.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008526/0.3625, allocations: 32.42 kB / 465.5 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.978e-05/0.3626, allocations: 44.52 kB / 465.6 MB, free: 4.559 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005584/0.3632, allocations: 273.4 kB / 465.9 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001939/0.3634, allocations: 105.6 kB / 466 MB, free: 4.281 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001582/0.3649, allocations: 0.7379 MB / 466.7 MB, free: 3.824 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/0.3649, allocations: 12.34 kB / 466.7 MB, free: 3.824 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.559e-05/0.365, allocations: 9.469 kB / 466.7 MB, free: 3.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.365, allocations: 7.969 kB / 466.7 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004351/0.3693, allocations: 2.613 MB / 469.3 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.3693, allocations: 0.9062 kB / 469.3 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008563/0.3702, allocations: 192.4 kB / 469.5 MB, free: 1.883 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004632/0.3707, allocations: 163.3 kB / 469.7 MB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.807e-05/0.3707, allocations: 28.39 kB / 469.7 MB, free: 1.762 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005194/0.3759, allocations: 5.985 MB / 475.7 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3759, allocations: 6 kB / 475.7 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002965/0.3789, allocations: 1.658 MB / 477.4 MB, free: 10.72 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005244/0.3794, allocations: 254 kB / 477.6 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/0.3795, allocations: 25.84 kB / 477.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005473/0.3801, allocations: 34.36 kB / 477.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001843/0.3803, allocations: 80.95 kB / 477.7 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.173e-05/0.3803, allocations: 33.42 kB / 477.8 MB, free: 10.39 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000662/0.381, allocations: 463.6 kB / 478.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.381, allocations: 0 / 478.2 MB, free: 10.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001015/0.382, allocations: 259.3 kB / 478.5 MB, free: 10.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003178/0.3852, allocations: 2.256 MB / 480.7 MB, free: 8.531 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002348/0.3875, allocations: 1.225 MB / 482 MB, free: 7.523 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3875, allocations: 0 / 482 MB, free: 7.523 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.389, allocations: 0.9437 MB / 482.9 MB, free: 6.527 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001261/0.3903, allocations: 207.1 kB / 483.1 MB, free: 6.336 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/0.4039, allocations: 8.2 MB / 491.3 MB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007528/0.4046, allocations: 1.033 MB / 492.3 MB, free: 12.86 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005697/0.4052, allocations: 128 kB / 492.5 MB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005992/0.4058, allocations: 399.3 kB / 492.9 MB, free: 12.34 MB / 398.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4058, allocations: 0 / 492.9 MB, free: 12.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06688/0.4727, allocations: 21.71 MB / 0.5025 GB, free: 6.922 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.21, allocations: 15.19 kB / 0.5025 GB, free: 6.91 MB / 414.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=1e-05 --timeout=50 --tolerance=1e-07 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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: 14.904333660844713]