Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002472/0.002479, allocations: 183.8 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.116/2.116, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001143, allocations: 97.23 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004007/0.0004009, allocations: 16 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3496, allocations: 47.56 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour): time 0.005631/0.3553, allocations: 3.671 MB / 378.3 MB, free: 42.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003859/0.3592, allocations: 1.667 MB / 380 MB, free: 41.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005889/0.3598, allocations: 12.66 kB / 380 MB, free: 41.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008472/0.3607, allocations: 375.7 kB / 380.3 MB, free: 41.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001342/0.3621, allocations: 427.2 kB / 380.8 MB, free: 40.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008779/0.363, allocations: 201.2 kB / 381 MB, free: 40.61 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001479/0.3645, allocations: 0.6342 MB / 381.6 MB, free: 40.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005059/0.365, allocations: 225.4 kB / 381.8 MB, free: 40.07 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007069/0.3657, allocations: 330.4 kB / 382.1 MB, free: 39.9 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007204/0.3665, allocations: 406.8 kB / 382.5 MB, free: 39.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.3666, allocations: 36.5 kB / 382.6 MB, free: 39.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000283/0.3669, allocations: 61.06 kB / 382.6 MB, free: 39.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002116/0.3671, allocations: 172.4 kB / 382.8 MB, free: 39.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002194/0.3673, allocations: 182.5 kB / 383 MB, free: 39.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001218/0.3686, allocations: 0.9827 MB / 384 MB, free: 38.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3686, allocations: 0 / 384 MB, free: 38.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3686, allocations: 0 / 384 MB, free: 38.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.3686, allocations: 0 / 384 MB, free: 38.65 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003322/0.372, allocations: 1.095 MB / 385.1 MB, free: 37.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.687e-05/0.3721, allocations: 13.11 kB / 385.1 MB, free: 37.8 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002025/0.3723, allocations: 97.95 kB / 385.2 MB, free: 37.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002304/0.3725, allocations: 97.61 kB / 385.3 MB, free: 37.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001231/0.3738, allocations: 0.5202 MB / 385.8 MB, free: 37.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.3739, allocations: 53.89 kB / 385.8 MB, free: 37.18 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001475/0.3741, allocations: 58.06 kB / 385.9 MB, free: 37.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001982/0.3761, allocations: 0.6551 MB / 386.5 MB, free: 36.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.77e-05/0.3762, allocations: 9.188 kB / 386.6 MB, free: 36.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.095e-05/0.3763, allocations: 25.56 kB / 386.6 MB, free: 36.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.161e-05/0.3763, allocations: 15.94 kB / 386.6 MB, free: 36.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002062/0.3784, allocations: 0.5906 MB / 387.2 MB, free: 36.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005218/0.3836, allocations: 2.565 MB / 389.8 MB, free: 33.43 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.3851, allocations: 489.7 kB / 390.2 MB, free: 32.94 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.13e-05/0.3852, allocations: 4.438 kB / 390.2 MB, free: 32.94 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.3852, allocations: 42.98 kB / 390.3 MB, free: 32.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=48): time 3.316e-06/0.3852, allocations: 0 / 390.3 MB, free: 32.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=60): time 0.007464/0.3927, allocations: 1.637 MB / 391.9 MB, free: 31.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.3928, allocations: 63.97 kB / 392 MB, free: 31.17 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001508/0.3943, allocations: 0.9418 MB / 392.9 MB, free: 30.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.347e-05/0.3944, allocations: 33.7 kB / 392.9 MB, free: 30.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002619/0.3947, allocations: 410.5 kB / 393.4 MB, free: 29.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001727/0.3949, allocations: 209 kB / 393.6 MB, free: 29.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.3949, allocations: 8 kB / 393.6 MB, free: 29.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.389e-05/0.395, allocations: 338.8 kB / 393.9 MB, free: 29.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/0.396, allocations: 261.2 kB / 394.1 MB, free: 28.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.3971, allocations: 359.6 kB / 394.5 MB, free: 28.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001079/0.3982, allocations: 291.1 kB / 394.8 MB, free: 28.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.3982, allocations: 4 kB / 394.8 MB, free: 28.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002374/0.4006, allocations: 0.7118 MB / 395.5 MB, free: 27.58 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.492e-05/0.4007, allocations: 11.95 kB / 395.5 MB, free: 27.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.4007, allocations: 0 / 395.5 MB, free: 27.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/0.4007, allocations: 8 kB / 395.5 MB, free: 27.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/0.4021, allocations: 183.8 kB / 395.7 MB, free: 27.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/0.4021, allocations: 8 kB / 395.7 MB, free: 27.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.4032, allocations: 51.95 kB / 395.8 MB, free: 27.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.884e-05/0.4032, allocations: 20 kB / 395.8 MB, free: 27.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005421/0.4038, allocations: 269.6 kB / 396 MB, free: 27.03 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001543/0.404, allocations: 82.97 kB / 396.1 MB, free: 26.95 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002262/0.4062, allocations: 0.6669 MB / 396.8 MB, free: 26.27 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.4063, allocations: 8 kB / 396.8 MB, free: 26.27 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.4063, allocations: 0 / 396.8 MB, free: 26.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.4063, allocations: 3.984 kB / 396.8 MB, free: 26.26 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004271/0.4106, allocations: 1.816 MB / 398.6 MB, free: 24.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.465e-06/0.4106, allocations: 0 / 398.6 MB, free: 24.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001034/0.4117, allocations: 143.8 kB / 398.8 MB, free: 24.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.209e-05/0.4117, allocations: 4 kB / 398.8 MB, free: 24.18 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.813e-05/0.4118, allocations: 16 kB / 398.8 MB, free: 24.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.458e-06/0.4118, allocations: 12.08 kB / 398.8 MB, free: 24.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.4118, allocations: 0 / 398.8 MB, free: 24.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00217/0.414, allocations: 0.8659 MB / 399.7 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004238/0.4144, allocations: 208 kB / 399.9 MB, free: 22.97 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.4146, allocations: 16 kB / 399.9 MB, free: 22.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007617/0.4154, allocations: 43.97 kB / 399.9 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001311/0.4155, allocations: 44.31 kB / 400 MB, free: 22.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.964e-05/0.4156, allocations: 20 kB / 400 MB, free: 22.85 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001089/0.4167, allocations: 0.6903 MB / 400.7 MB, free: 22.16 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4167, allocations: 0 / 400.7 MB, free: 22.16 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008056/0.4175, allocations: 152 kB / 400.8 MB, free: 22.02 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003296/0.4208, allocations: 2.213 MB / 403 MB, free: 19.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002224/0.4231, allocations: 0.6201 MB / 403.6 MB, free: 19.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.4231, allocations: 0 / 403.6 MB, free: 19.13 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.4241, allocations: 307.2 kB / 403.9 MB, free: 18.83 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00106/0.4252, allocations: 114.8 kB / 404.1 MB, free: 18.72 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/0.437, allocations: 6.193 MB / 410.3 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000519/0.4376, allocations: 0.975 MB / 411.2 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007377/0.4383, allocations: 291.3 kB / 411.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of SimCode: time 1.062e-06/0.4384, allocations: 3.938 kB / 411.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.873/3.311, allocations: 13.7 MB / 425.2 MB, free: 13.34 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_fmu --startTime=-4 --stopTime=4 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat does not exist to compare? outputFormat=mat