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.001285/0.001285, allocations: 108.8 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001451/0.001451, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 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 1.394/1.394, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00148/0.00148, allocations: 39.94 kB / 371.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2713/0.2728, allocations: 52.19 MB / 423.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008116/0.2809, allocations: 6.363 MB / 429.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003671/0.2846, allocations: 1.854 MB / 431.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005854/0.2852, allocations: 19.94 kB / 431.7 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006175/0.2858, allocations: 218 kB / 431.9 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009471/0.2867, allocations: 408.8 kB / 432.3 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007288/0.2875, allocations: 367.6 kB / 432.6 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001671/0.2891, allocations: 1.491 MB / 434.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005747/0.2897, allocations: 351 kB / 434.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007034/0.2904, allocations: 0.5607 MB / 435 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007958/0.2912, allocations: 0.5991 MB / 435.6 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002068/0.2914, allocations: 156 kB / 435.8 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002241/0.2916, allocations: 160 kB / 435.9 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002726/0.2919, allocations: 307 kB / 436.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006714/0.2926, allocations: 0.6417 MB / 436.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001871/0.2945, allocations: 1.856 MB / 438.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2945, allocations: 0 / 438.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2945, allocations: 0 / 438.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.588e-05/0.2945, allocations: 4 kB / 438.7 MB, free: 15.19 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.002991/0.2975, allocations: 1.4 MB / 440.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.2975, allocations: 12.03 kB / 440.1 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.621e-05/0.2976, allocations: 26.19 kB / 440.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001825/0.2977, allocations: 148.3 kB / 440.3 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002156/0.298, allocations: 128.1 kB / 440.4 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.2992, allocations: 0.6155 MB / 441 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.305e-05/0.2993, allocations: 74.38 kB / 441.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001614/0.2994, allocations: 100.3 kB / 441.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001986/0.3014, allocations: 1.005 MB / 442.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.399e-05/0.3015, allocations: 3.984 kB / 442.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.901e-05/0.3016, allocations: 44 kB / 442.3 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.126e-05/0.3016, allocations: 24 kB / 442.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001987/0.3036, allocations: 0.8679 MB / 443.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005379/0.3089, allocations: 3.24 MB / 446.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00153/0.3105, allocations: 0.7693 MB / 447.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009377/0.3114, allocations: 431.6 kB / 447.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.272e-05/0.3115, allocations: 24.33 kB / 447.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.816e-05/0.3115, allocations: 51 kB / 447.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=91): time 2.955e-06/0.3115, allocations: 0 / 447.7 MB, free: 6.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=115): time 0.009855/0.3214, allocations: 3.945 MB / 451.6 MB, free: 1.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.829e-05/0.3215, allocations: 85.77 kB / 451.7 MB, free: 1.863 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008765/0.3223, allocations: 0.6007 MB / 452.3 MB, free: 1.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.48e-05/0.3224, allocations: 45.7 kB / 452.3 MB, free: 1.199 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003466/0.3228, allocations: 433.1 kB / 452.8 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003638/0.3231, allocations: 416.4 kB / 453.2 MB, free: 368 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000313/0.3235, allocations: 178.9 kB / 453.3 MB, free: 184 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002369/0.3237, allocations: 402.7 kB / 453.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008872/0.3246, allocations: 378.4 kB / 454.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/0.3256, allocations: 0.5158 MB / 454.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001811/0.3274, allocations: 0.8732 MB / 455.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.3274, allocations: 4 kB / 455.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002603/0.33, allocations: 1.193 MB / 456.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.33, allocations: 7.281 kB / 456.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.3301, allocations: 4 kB / 456.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000439/0.3305, allocations: 134.5 kB / 456.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001063/0.3316, allocations: 247.6 kB / 457.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004543/0.3361, allocations: 4.668 MB / 461.7 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008661/0.337, allocations: 51.97 kB / 461.8 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.039e-05/0.337, allocations: 43.98 kB / 461.8 MB, free: 7.242 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 (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.0004856/0.3375, allocations: 271.3 kB / 462.1 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.3377, allocations: 95.39 kB / 462.2 MB, free: 6.875 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.3393, allocations: 0.7721 MB / 463 MB, free: 6.082 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.616e-05/0.3394, allocations: 16 kB / 463 MB, free: 6.066 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.3394, allocations: 4.109 kB / 463 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.611e-05/0.3394, allocations: 11.98 kB / 463 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004404/0.3438, allocations: 2.607 MB / 465.6 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3438, allocations: 0 / 465.6 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008978/0.3447, allocations: 203.7 kB / 465.8 MB, free: 3.152 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004733/0.3452, allocations: 159.3 kB / 466 MB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.369e-05/0.3452, allocations: 27.98 kB / 466 MB, free: 2.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004776/0.35, allocations: 5.58 MB / 471.6 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.35, allocations: 0 / 471.6 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003358/0.3534, allocations: 1.75 MB / 473.3 MB, free: 11.13 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002578/0.3536, allocations: 95.48 kB / 473.4 MB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.3537, allocations: 24.12 kB / 473.4 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000575/0.3543, allocations: 47.95 kB / 473.5 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.3545, allocations: 80.5 kB / 473.6 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-05/0.3546, allocations: 31.98 kB / 473.6 MB, free: 10.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005888/0.3551, allocations: 443.1 kB / 474 MB, free: 10.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3551, allocations: 0 / 474 MB, free: 10.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009132/0.3561, allocations: 259.9 kB / 474.3 MB, free: 10.18 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 (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.003497/0.3596, allocations: 2.313 MB / 476.6 MB, free: 7.816 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002477/0.362, allocations: 1.296 MB / 477.9 MB, free: 6.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.362, allocations: 0 / 477.9 MB, free: 6.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001532/0.3636, allocations: 0.9748 MB / 478.9 MB, free: 5.453 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.3646, allocations: 185.3 kB / 479 MB, free: 5.277 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.3779, allocations: 8.208 MB / 487.3 MB, free: 12.83 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007145/0.3786, allocations: 1.024 MB / 488.3 MB, free: 11.78 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005162/0.3792, allocations: 111.6 kB / 488.4 MB, free: 11.67 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005659/0.3797, allocations: 391.3 kB / 488.8 MB, free: 11.29 MB / 398.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3797, allocations: 4 kB / 488.8 MB, free: 11.28 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06128/0.441, allocations: 21.69 MB / 0.4985 GB, free: 5.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.39, allocations: 10.66 kB / 0.4985 GB, free: 5.832 MB / 414.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/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: 16.363613723020535]