Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001726/0.001726, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.002138/0.002138, allocations: 214.8 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.46/1.46, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 43.94 kB / 347.2 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2602, allocations: 49.16 MB / 396.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.008555/0.2687, allocations: 5.532 MB / 401.9 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004599/0.2733, allocations: 1.799 MB / 403.7 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001446/0.2748, allocations: 23.69 kB / 403.7 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009299/0.2757, allocations: 215.8 kB / 403.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001656/0.2774, allocations: 398 kB / 404.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001051/0.2784, allocations: 379.4 kB / 404.7 MB, free: 3.258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002387/0.2808, allocations: 1.489 MB / 406.2 MB, free: 2.453 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006837/0.2815, allocations: 329.7 kB / 406.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009709/0.2825, allocations: 0.5531 MB / 407 MB, free: 1.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008304/0.2833, allocations: 0.5221 MB / 407.5 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00024/0.2835, allocations: 162.1 kB / 407.7 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003161/0.2838, allocations: 159.5 kB / 407.9 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000238/0.2841, allocations: 304.4 kB / 408.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005708/0.2847, allocations: 0.5208 MB / 408.7 MB, free: 1.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002363/0.287, allocations: 1.871 MB / 410.6 MB, free: 176 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.426e-06/0.287, allocations: 0.9688 kB / 410.6 MB, free: 176 kB / 318.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.287, allocations: 0 / 410.6 MB, free: 176 kB / 318.1 MB Notification: Performance of Transformations before backend: time 4.805e-05/0.2871, allocations: 0 / 410.6 MB, free: 176 kB / 318.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.003562/0.2906, allocations: 1.406 MB / 412 MB, free: 15.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.2907, allocations: 13.36 kB / 412 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001948/0.2909, allocations: 148.8 kB / 412.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002524/0.2911, allocations: 127.7 kB / 412.2 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002011/0.2931, allocations: 0.6178 MB / 412.9 MB, free: 14.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.2933, allocations: 74.31 kB / 412.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002997/0.2936, allocations: 103.4 kB / 413 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003372/0.2969, allocations: 1.053 MB / 414.1 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-05/0.297, allocations: 10.61 kB / 414.1 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001482/0.2972, allocations: 39.88 kB / 414.1 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.79e-05/0.2972, allocations: 22.88 kB / 414.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003233/0.3004, allocations: 0.8563 MB / 415 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008817/0.3093, allocations: 2.841 MB / 417.9 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.311, allocations: 0.763 MB / 418.6 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009625/0.3119, allocations: 442 kB / 419 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.422e-05/0.312, allocations: 10.88 kB / 419.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.359e-05/0.312, allocations: 47.2 kB / 419.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of pre-optimization done (n=91): time 3.757e-06/0.3121, allocations: 1.438 kB / 419.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=115): time 0.01086/0.3229, allocations: 3.938 MB / 423 MB, free: 8.039 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.06e-05/0.323, allocations: 93.77 kB / 423.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001013/0.324, allocations: 0.6084 MB / 423.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.454e-05/0.3241, allocations: 45.7 kB / 423.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000379/0.3245, allocations: 425.1 kB / 424.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003919/0.3249, allocations: 416.4 kB / 424.6 MB, free: 6.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003338/0.3252, allocations: 182.9 kB / 424.8 MB, free: 6.246 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002514/0.3254, allocations: 394.7 kB / 425.2 MB, free: 5.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000859/0.3263, allocations: 382.4 kB / 425.5 MB, free: 5.477 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009858/0.3273, allocations: 0.5081 MB / 426.1 MB, free: 4.938 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001833/0.3291, allocations: 0.8925 MB / 426.9 MB, free: 4.008 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3291, allocations: 4 kB / 427 MB, free: 4.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002598/0.3317, allocations: 1.189 MB / 428.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.3317, allocations: 12.25 kB / 428.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.3318, allocations: 4 kB / 428.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004365/0.3322, allocations: 130.5 kB / 428.3 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/0.3333, allocations: 251.7 kB / 428.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004349/0.3376, allocations: 4.64 MB / 433.2 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008605/0.3385, allocations: 51.97 kB / 433.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.78e-05/0.3386, allocations: 44.09 kB / 433.3 MB, free: 13.33 MB / 350.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.0005294/0.3391, allocations: 281.6 kB / 433.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001831/0.3393, allocations: 99.48 kB / 433.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/0.341, allocations: 0.7605 MB / 434.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.301e-05/0.341, allocations: 16 kB / 434.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.341, allocations: 4 kB / 434.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.115e-05/0.341, allocations: 3.984 kB / 434.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004535/0.3455, allocations: 2.334 MB / 436.8 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.3455, allocations: 0 / 436.8 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009398/0.3465, allocations: 207.8 kB / 437 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004488/0.3469, allocations: 151.3 kB / 437.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.92e-05/0.347, allocations: 27.98 kB / 437.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004941/0.3519, allocations: 5.557 MB / 442.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3519, allocations: 0 / 442.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003513/0.3554, allocations: 1.747 MB / 444.4 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/0.3557, allocations: 87.47 kB / 444.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.3558, allocations: 24 kB / 444.5 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006164/0.3565, allocations: 51.95 kB / 444.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.3566, allocations: 88.38 kB / 444.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.156e-05/0.3567, allocations: 28 kB / 444.7 MB, free: 1.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000653/0.3573, allocations: 443.1 kB / 445.1 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3573, allocations: 4 kB / 445.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009985/0.3583, allocations: 256 kB / 445.4 MB, free: 0.5859 MB / 350.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.003718/0.3621, allocations: 2.324 MB / 447.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002621/0.3647, allocations: 1.28 MB / 449 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.3647, allocations: 0 / 449 MB, free: 12.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001586/0.3663, allocations: 0.9674 MB / 450 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.3674, allocations: 194.9 kB / 450.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/0.3816, allocations: 8.21 MB / 458.4 MB, free: 3.254 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005139/0.3821, allocations: 440.8 kB / 458.8 MB, free: 2.785 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005463/0.3827, allocations: 115.6 kB / 458.9 MB, free: 2.668 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005878/0.3833, allocations: 387.3 kB / 459.3 MB, free: 2.289 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3833, allocations: 0 / 459.3 MB, free: 2.289 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07191/0.4552, allocations: 22.3 MB / 481.6 MB, free: 11.89 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.85, allocations: 7.922 kB / 481.6 MB, free: 11.88 MB / 398.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=9.94036e-06 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/MovingCoilActuator/ArmatureStroke/ArmatureStroke.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.793966749217361]