Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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.00129/0.00129, 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.0008176/0.0008176, allocations: 153.1 kB / 23.93 MB, free: 0.6367 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.9396/0.9396, allocations: 173.4 MB / 200.4 MB, free: 9.426 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.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 318.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.606e-05/1.78e-05, allocations: 2.281 kB / 318.4 MB, free: 6.238 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.005109/0.005127, allocations: 5.614 MB / 324 MB, free: 0.5898 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003116/0.008243, allocations: 1.776 MB / 325.8 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005444/0.008787, allocations: 23.88 kB / 325.8 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006301/0.009417, allocations: 206.1 kB / 326 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008994/0.01032, allocations: 424.5 kB / 326.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005966/0.01091, allocations: 379.5 kB / 326.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001426/0.01234, allocations: 1.528 MB / 328.3 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005282/0.01287, allocations: 333.8 kB / 328.7 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001263/0.01413, allocations: 0.8421 MB / 329.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000626/0.01476, allocations: 458.7 kB / 330 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001967/0.01495, allocations: 156 kB / 330.1 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.01513, allocations: 160 kB / 330.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002703/0.0154, allocations: 307 kB / 330.6 MB, free: 10.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004254/0.01583, allocations: 463 kB / 331 MB, free: 9.559 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001741/0.01757, allocations: 1.897 MB / 332.9 MB, free: 7.656 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.01758, allocations: 0 / 332.9 MB, free: 7.656 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.01758, allocations: 0 / 332.9 MB, free: 7.656 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.872e-05/0.01764, allocations: 11.94 kB / 332.9 MB, free: 7.645 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.002391/0.02003, allocations: 1.389 MB / 334.3 MB, free: 6.219 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.996e-05/0.02009, allocations: 12.92 kB / 334.3 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001427/0.02023, allocations: 140.3 kB / 334.5 MB, free: 6.062 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001804/0.02041, allocations: 128.2 kB / 334.6 MB, free: 5.938 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009148/0.02133, allocations: 0.6147 MB / 335.2 MB, free: 5.297 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.767e-05/0.02138, allocations: 74.38 kB / 335.3 MB, free: 5.223 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.02149, allocations: 100.3 kB / 335.4 MB, free: 5.125 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001519/0.02301, allocations: 1.052 MB / 336.4 MB, free: 4.051 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.137e-05/0.02304, allocations: 16.14 kB / 336.4 MB, free: 4.035 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.239e-05/0.02311, allocations: 40.12 kB / 336.5 MB, free: 3.996 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.659e-05/0.02312, allocations: 20 kB / 336.5 MB, free: 3.977 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.02426, allocations: 0.8718 MB / 337.4 MB, free: 3.102 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002967/0.02723, allocations: 2.837 MB / 340.2 MB, free: 172 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008744/0.0281, allocations: 0.773 MB / 341 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005044/0.0286, allocations: 435.6 kB / 341.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.845e-05/0.02864, allocations: 8.5 kB / 341.4 MB, free: 14.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.02867, allocations: 43.06 kB / 341.5 MB, free: 14.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=91): time 2.244e-06/0.02867, allocations: 4 kB / 341.5 MB, free: 14.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=115): time 0.005322/0.034, allocations: 3.938 MB / 345.4 MB, free: 10.84 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.823e-05/0.03403, allocations: 89.77 kB / 345.5 MB, free: 10.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004796/0.03451, allocations: 0.6161 MB / 346.1 MB, free: 10.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.03455, allocations: 41.7 kB / 346.1 MB, free: 10.05 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.03475, allocations: 433.1 kB / 346.6 MB, free: 9.625 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000192/0.03495, allocations: 412.4 kB / 347 MB, free: 9.219 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.03512, allocations: 182.9 kB / 347.2 MB, free: 9.035 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.03524, allocations: 394.7 kB / 347.5 MB, free: 8.641 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004877/0.03572, allocations: 382.4 kB / 347.9 MB, free: 8.266 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005444/0.03627, allocations: 0.5081 MB / 348.4 MB, free: 7.727 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001006/0.03727, allocations: 0.882 MB / 349.3 MB, free: 6.809 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.03728, allocations: 0 / 349.3 MB, free: 6.809 MB / 314.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00144/0.03872, allocations: 1.19 MB / 350.5 MB, free: 5.602 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.03874, allocations: 8 kB / 350.5 MB, free: 5.594 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.867e-06/0.03874, allocations: 4 kB / 350.5 MB, free: 5.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000244/0.03899, allocations: 126.5 kB / 350.6 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005157/0.0395, allocations: 251.6 kB / 350.9 MB, free: 5.211 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00227/0.04177, allocations: 4.652 MB / 355.5 MB, free: 224 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000281/0.04206, allocations: 43.97 kB / 355.6 MB, free: 180 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.323e-05/0.0421, allocations: 39.98 kB / 355.6 MB, free: 140 kB / 314.7 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 (128): * Single equations (assignments): 125 * 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.00027/0.04237, allocations: 284.7 kB / 355.9 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.175e-05/0.04246, allocations: 99.38 kB / 356 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008806/0.04334, allocations: 0.7606 MB / 356.7 MB, free: 14.97 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-06/0.04335, allocations: 15.94 kB / 356.8 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.04335, allocations: 4 kB / 356.8 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.765e-06/0.04336, allocations: 3.984 kB / 356.8 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002406/0.04577, allocations: 2.335 MB / 359.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.04577, allocations: 0 / 359.1 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004313/0.0462, allocations: 207.8 kB / 359.3 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002234/0.04643, allocations: 155.3 kB / 359.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.9e-05/0.04647, allocations: 27.98 kB / 359.5 MB, free: 12.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002423/0.04889, allocations: 5.549 MB / 365 MB, free: 6.145 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.04889, allocations: 4.031 kB / 365 MB, free: 6.141 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.05068, allocations: 1.739 MB / 366.8 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.143e-05/0.05077, allocations: 95.41 kB / 366.9 MB, free: 4.273 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.396e-05/0.05083, allocations: 24 kB / 366.9 MB, free: 4.25 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002692/0.0511, allocations: 51.95 kB / 366.9 MB, free: 4.199 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.0512, allocations: 76.5 kB / 367 MB, free: 4.125 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.361e-05/0.05124, allocations: 35.98 kB / 367.1 MB, free: 4.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003233/0.05156, allocations: 439.1 kB / 367.5 MB, free: 3.664 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.05156, allocations: 0 / 367.5 MB, free: 3.664 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005295/0.05209, allocations: 256 kB / 367.7 MB, free: 3.414 MB / 330.7 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 (104): * Single equations (assignments): 100 * 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.002041/0.05413, allocations: 2.327 MB / 370.1 MB, free: 1.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00147/0.0556, allocations: 1.28 MB / 371.3 MB, free: 15.72 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.0556, allocations: 0 / 371.3 MB, free: 15.72 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008085/0.05641, allocations: 0.9791 MB / 372.3 MB, free: 14.69 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006417/0.05705, allocations: 185.8 kB / 372.5 MB, free: 14.51 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008543/0.0656, allocations: 8.104 MB / 380.6 MB, free: 6.176 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003177/0.06592, allocations: 440.9 kB / 381 MB, free: 5.711 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003163/0.06623, allocations: 115.6 kB / 381.1 MB, free: 5.594 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003672/0.0666, allocations: 392.4 kB / 381.5 MB, free: 5.211 MB / 346.7 MB Notification: Performance of SimCode: time 1.202e-06/0.0666, allocations: 0 / 381.5 MB, free: 5.211 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04204/0.1086, allocations: 22.49 MB / 404 MB, free: 15.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.803/7.912, allocations: 8.047 kB / 404 MB, free: 15.01 MB / 378.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=9.94036e-06 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 9.875175177119672]