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.001886/0.001886, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.001603/0.001603, allocations: 214.1 kB / 23.75 MB, free: 4.668 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.47/1.47, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.001667/0.001667, allocations: 47.92 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2613/0.263, allocations: 53.36 MB / 431.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.009283/0.2723, allocations: 6.5 MB / 437.6 MB, free: 332 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004333/0.2766, allocations: 1.928 MB / 439.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001022/0.2776, allocations: 19.94 kB / 439.6 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001007/0.2786, allocations: 214 kB / 439.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001653/0.2803, allocations: 432.7 kB / 440.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.2813, allocations: 371.5 kB / 440.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00224/0.2835, allocations: 1.499 MB / 442.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007445/0.2843, allocations: 357.3 kB / 442.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001049/0.2853, allocations: 0.5762 MB / 443 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001185/0.2865, allocations: 0.6068 MB / 443.6 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003687/0.2869, allocations: 160 kB / 443.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000451/0.2873, allocations: 172 kB / 443.9 MB, free: 9.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003754/0.2877, allocations: 299.1 kB / 444.2 MB, free: 9.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.2887, allocations: 0.665 MB / 444.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002522/0.2913, allocations: 1.889 MB / 446.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2913, allocations: 3.938 kB / 446.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2913, allocations: 0 / 446.8 MB, free: 7.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.939e-05/0.2913, allocations: 4 kB / 446.8 MB, free: 7.125 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.003489/0.2948, allocations: 1.392 MB / 448.2 MB, free: 5.699 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.2949, allocations: 12.03 kB / 448.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001995/0.2951, allocations: 148.4 kB / 448.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005599/0.2956, allocations: 156.1 kB / 448.5 MB, free: 5.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001402/0.297, allocations: 0.6382 MB / 449.1 MB, free: 4.711 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.288e-05/0.2971, allocations: 74 kB / 449.2 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001575/0.2973, allocations: 100 kB / 449.3 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001741/0.299, allocations: 0.9779 MB / 450.3 MB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.736e-05/0.2991, allocations: 11.94 kB / 450.3 MB, free: 3.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.192e-05/0.2992, allocations: 40 kB / 450.3 MB, free: 3.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.194e-05/0.2992, allocations: 24 kB / 450.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/0.3008, allocations: 0.7938 MB / 451.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005461/0.3063, allocations: 3.248 MB / 454.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.3076, allocations: 0.7573 MB / 455.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007322/0.3083, allocations: 413.7 kB / 455.5 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.308e-05/0.3084, allocations: 20.47 kB / 455.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.3084, allocations: 43.69 kB / 455.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=95): time 2.474e-06/0.3084, allocations: 0 / 455.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=119): time 0.008675/0.3171, allocations: 3.822 MB / 459.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.3172, allocations: 89.77 kB / 459.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008998/0.3181, allocations: 0.6408 MB / 460.2 MB, free: 9.387 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.07e-05/0.3181, allocations: 41.7 kB / 460.2 MB, free: 9.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003676/0.3185, allocations: 453 kB / 460.6 MB, free: 8.891 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003509/0.3189, allocations: 420.3 kB / 461.1 MB, free: 8.477 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002878/0.3191, allocations: 190.9 kB / 461.2 MB, free: 8.285 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002144/0.3194, allocations: 398.7 kB / 461.6 MB, free: 7.887 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006824/0.32, allocations: 342.5 kB / 462 MB, free: 7.551 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008278/0.3209, allocations: 492.7 kB / 462.4 MB, free: 7.031 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.3224, allocations: 0.8509 MB / 463.3 MB, free: 6.145 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3224, allocations: 0 / 463.3 MB, free: 6.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002152/0.3246, allocations: 1.154 MB / 464.5 MB, free: 4.973 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.3246, allocations: 4 kB / 464.5 MB, free: 4.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.3246, allocations: 4 kB / 464.5 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004734/0.3251, allocations: 134.5 kB / 464.6 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009852/0.3261, allocations: 239.6 kB / 464.8 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004576/0.3306, allocations: 4.666 MB / 469.5 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006878/0.3313, allocations: 35.98 kB / 469.5 MB, free: 15.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.517e-05/0.3314, allocations: 39.98 kB / 469.6 MB, free: 15.51 MB / 382.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.0005448/0.3319, allocations: 283.9 kB / 469.8 MB, free: 15.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000243/0.3322, allocations: 107.3 kB / 469.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/0.3337, allocations: 0.7375 MB / 470.7 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.3337, allocations: 12 kB / 470.7 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.3337, allocations: 4 kB / 470.7 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.815e-05/0.3337, allocations: 12 kB / 470.7 MB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004296/0.338, allocations: 2.575 MB / 473.3 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.338, allocations: 3.938 kB / 473.3 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00086/0.3389, allocations: 191.8 kB / 473.5 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004527/0.3393, allocations: 155.3 kB / 473.6 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.331e-05/0.3394, allocations: 28 kB / 473.7 MB, free: 11.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005337/0.3447, allocations: 5.58 MB / 479.2 MB, free: 5.238 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.3447, allocations: 4.031 kB / 479.2 MB, free: 5.234 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003029/0.3478, allocations: 1.665 MB / 480.9 MB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000443/0.3482, allocations: 183.3 kB / 481.1 MB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001706/0.3484, allocations: 20 kB / 481.1 MB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006117/0.349, allocations: 47.86 kB / 481.2 MB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001754/0.3492, allocations: 84.48 kB / 481.2 MB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.075e-05/0.3492, allocations: 28 kB / 481.3 MB, free: 3.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007137/0.3499, allocations: 463 kB / 481.7 MB, free: 2.734 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3499, allocations: 0 / 481.7 MB, free: 2.734 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001068/0.351, allocations: 260 kB / 482 MB, free: 2.48 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.00347/0.3545, allocations: 2.241 MB / 484.2 MB, free: 200 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002445/0.3569, allocations: 1.231 MB / 485.4 MB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.3569, allocations: 3.938 kB / 485.4 MB, free: 14.92 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001416/0.3583, allocations: 0.94 MB / 486.4 MB, free: 13.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.3596, allocations: 199.8 kB / 486.6 MB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01373/0.3733, allocations: 8.21 MB / 494.8 MB, free: 5.301 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008058/0.3741, allocations: 1.037 MB / 495.8 MB, free: 4.238 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005143/0.3747, allocations: 128 kB / 495.9 MB, free: 4.109 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005991/0.3753, allocations: 395.3 kB / 496.3 MB, free: 3.723 MB / 398.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3753, allocations: 0 / 496.3 MB, free: 3.723 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07155/0.4468, allocations: 22.48 MB / 0.5067 GB, free: 13.49 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.42/13.87, allocations: 15.73 kB / 0.5067 GB, free: 13.48 MB / 430.1 MB " [Timeout remaining time 646] (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: 16.64176034112461]