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.001678/0.001678, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002415/0.002415, allocations: 203.6 kB / 23.73 MB, free: 4.379 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.522/1.522, allocations: 230.6 MB / 257.5 MB, free: 7.746 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.00158/0.00158, allocations: 51.88 kB / 377.7 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3448, allocations: 53.38 MB / 431.1 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008541/0.3533, allocations: 5.709 MB / 436.8 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004112/0.3574, allocations: 1.835 MB / 438.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006959/0.3581, allocations: 19.94 kB / 438.6 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007186/0.3588, allocations: 214.1 kB / 438.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001168/0.36, allocations: 420.7 kB / 439.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008694/0.3609, allocations: 383.5 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001927/0.3628, allocations: 1.503 MB / 441.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006149/0.3634, allocations: 353.9 kB / 441.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000977/0.3644, allocations: 0.5685 MB / 442.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008825/0.3653, allocations: 0.6146 MB / 442.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002005/0.3655, allocations: 160 kB / 442.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002636/0.3657, allocations: 168 kB / 443 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002849/0.366, allocations: 303.1 kB / 443.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006327/0.3667, allocations: 0.5368 MB / 443.8 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00209/0.3688, allocations: 1.907 MB / 445.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3688, allocations: 0 / 445.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3688, allocations: 0 / 445.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.557e-05/0.3688, allocations: 0 / 445.7 MB, free: 7.883 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.003047/0.3718, allocations: 1.4 MB / 447.1 MB, free: 6.449 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/0.3719, allocations: 8.031 kB / 447.1 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001975/0.3721, allocations: 148.4 kB / 447.3 MB, free: 6.289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005768/0.3726, allocations: 156.1 kB / 447.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001281/0.3739, allocations: 0.6382 MB / 448.1 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.192e-05/0.374, allocations: 77.94 kB / 448.2 MB, free: 5.391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001653/0.3742, allocations: 96 kB / 448.2 MB, free: 5.297 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/0.3761, allocations: 1.024 MB / 449.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.226e-05/0.3761, allocations: 7.953 kB / 449.3 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.159e-05/0.3762, allocations: 39.94 kB / 449.3 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.8e-05/0.3762, allocations: 24 kB / 449.3 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001617/0.3778, allocations: 0.7938 MB / 450.1 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005446/0.3833, allocations: 2.848 MB / 453 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/0.3848, allocations: 0.7661 MB / 453.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007648/0.3856, allocations: 408.8 kB / 454.1 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.735e-05/0.3856, allocations: 8.5 kB / 454.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.907e-05/0.3857, allocations: 51.62 kB / 454.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=95): time 3.617e-06/0.3857, allocations: 0 / 454.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=119): time 0.0095/0.3952, allocations: 3.82 MB / 458 MB, free: 11.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.479e-05/0.3953, allocations: 89.77 kB / 458.1 MB, free: 11.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009704/0.3962, allocations: 0.6485 MB / 458.8 MB, free: 10.51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.408e-05/0.3963, allocations: 45.7 kB / 458.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003649/0.3967, allocations: 445.1 kB / 459.2 MB, free: 10.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00039/0.3971, allocations: 432.3 kB / 459.7 MB, free: 9.59 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003288/0.3974, allocations: 186.9 kB / 459.8 MB, free: 9.402 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002242/0.3976, allocations: 394.7 kB / 460.2 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000702/0.3983, allocations: 350.5 kB / 460.6 MB, free: 8.664 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008312/0.3991, allocations: 484.6 kB / 461 MB, free: 8.152 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001545/0.4007, allocations: 0.8549 MB / 461.9 MB, free: 7.262 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.4007, allocations: 0 / 461.9 MB, free: 7.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002379/0.4031, allocations: 1.15 MB / 463.1 MB, free: 6.094 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.4031, allocations: 4 kB / 463.1 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.4031, allocations: 4 kB / 463.1 MB, free: 6.086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000459/0.4036, allocations: 130.8 kB / 463.2 MB, free: 5.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.4046, allocations: 239.6 kB / 463.4 MB, free: 5.715 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004651/0.4093, allocations: 4.643 MB / 468.1 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000844/0.4101, allocations: 40.2 kB / 468.1 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.173e-05/0.4102, allocations: 47.97 kB / 468.2 MB, free: 0.6445 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.0005914/0.4108, allocations: 277.6 kB / 468.4 MB, free: 372 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002047/0.411, allocations: 99.38 kB / 468.5 MB, free: 272 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001626/0.4126, allocations: 0.7414 MB / 469.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.427e-05/0.4126, allocations: 12 kB / 469.3 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.4127, allocations: 4 kB / 469.3 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/0.4127, allocations: 3.984 kB / 469.3 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004397/0.4171, allocations: 2.292 MB / 471.6 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.4171, allocations: 4 kB / 471.6 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009332/0.418, allocations: 191.8 kB / 471.8 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005253/0.4185, allocations: 167.3 kB / 471.9 MB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.608e-05/0.4186, allocations: 20 kB / 471.9 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005489/0.4241, allocations: 5.557 MB / 477.5 MB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.4241, allocations: 0 / 477.5 MB, free: 6.719 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003231/0.4273, allocations: 1.665 MB / 479.2 MB, free: 5.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005066/0.4278, allocations: 183.3 kB / 479.3 MB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.428, allocations: 23.94 kB / 479.4 MB, free: 4.816 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005921/0.4285, allocations: 39.92 kB / 479.4 MB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001898/0.4287, allocations: 84.48 kB / 479.5 MB, free: 4.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.347e-05/0.4288, allocations: 28 kB / 479.5 MB, free: 4.668 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006872/0.4295, allocations: 459.1 kB / 480 MB, free: 4.227 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4295, allocations: 0 / 480 MB, free: 4.227 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001023/0.4305, allocations: 264 kB / 480.2 MB, free: 3.969 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.003367/0.4339, allocations: 2.249 MB / 482.5 MB, free: 1.676 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00246/0.4363, allocations: 1.223 MB / 483.7 MB, free: 424 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.4363, allocations: 128 / 483.7 MB, free: 424 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001517/0.4379, allocations: 0.9393 MB / 484.6 MB, free: 15.42 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001329/0.4392, allocations: 208.2 kB / 484.8 MB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/0.4533, allocations: 8.202 MB / 493 MB, free: 6.793 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006193/0.4539, allocations: 454.6 kB / 493.5 MB, free: 6.32 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006404/0.4545, allocations: 120 kB / 493.6 MB, free: 6.199 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006723/0.4552, allocations: 403.3 kB / 494 MB, free: 5.805 MB / 398.1 MB Notification: Performance of SimCode: time 2.525e-06/0.4552, allocations: 0 / 494 MB, free: 5.805 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07147/0.5267, allocations: 23.54 MB / 0.5054 GB, free: 14.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.5, allocations: 10.52 kB / 0.5054 GB, free: 14.58 MB / 430.1 MB " [Timeout remaining time 647] (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: 15.382155594008509]