Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 223.2 MB / 240.3 MB, free: 11.91 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008303/0.0008303, allocations: 95.05 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002684/0.0002685, allocations: 8 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.214, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1032/0.3173, allocations: 91.79 MB / 493.4 MB, free: 4.664 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.3176, allocations: 95.95 kB / 493.5 MB, free: 4.57 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Magnetic/FluxTubes/Examples/MovingCoilActuator/Components/ConstantActuator.mo:67:3-67:83:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.2432/0.5607, allocations: 22.73 MB / 0.5041 GB, free: 91.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.5608, allocations: 0 / 0.5041 GB, free: 91.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.722e-05/0.5608, allocations: 23.41 kB / 0.5041 GB, free: 91.24 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002474/0.5633, allocations: 1.361 MB / 0.5054 GB, free: 90.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.5634, allocations: 9.281 kB / 0.5055 GB, free: 90.55 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001803/0.5636, allocations: 145.7 kB / 0.5056 GB, free: 90.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000242/0.5638, allocations: 130.1 kB / 0.5057 GB, free: 90.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.5648, allocations: 0.6599 MB / 0.5064 GB, free: 90.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001381/0.565, allocations: 78.03 kB / 0.5064 GB, free: 90.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.5651, allocations: 94.31 kB / 0.5065 GB, free: 90.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002132/0.5673, allocations: 1.038 MB / 0.5075 GB, free: 90.07 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.132e-05/0.5673, allocations: 10.03 kB / 0.5076 GB, free: 90.07 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.174e-05/0.5674, allocations: 41.91 kB / 0.5076 GB, free: 90.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.5674, allocations: 22.12 kB / 0.5076 GB, free: 90.07 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001809/0.5692, allocations: 0.9818 MB / 0.5086 GB, free: 90.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004562/0.5738, allocations: 3.86 MB / 0.5123 GB, free: 88.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00201/0.5758, allocations: 0.9637 MB / 0.5133 GB, free: 88.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.367e-05/0.5759, allocations: 19.72 kB / 0.5133 GB, free: 88.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.928e-05/0.5759, allocations: 43.06 kB / 0.5133 GB, free: 88.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 2.034e-06/0.5759, allocations: 0 / 0.5133 GB, free: 88.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.004596/0.5805, allocations: 2.21 MB / 0.5155 GB, free: 87.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.5806, allocations: 89.27 kB / 0.5156 GB, free: 87.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008844/0.5815, allocations: 0.8251 MB / 0.5164 GB, free: 87.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.191e-05/0.5815, allocations: 33.7 kB / 0.5164 GB, free: 87.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000225/0.5818, allocations: 0.5046 MB / 0.5169 GB, free: 86.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.5819, allocations: 281.4 kB / 0.5172 GB, free: 86.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.613e-05/0.5819, allocations: 15.22 kB / 0.5172 GB, free: 86.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.325e-05/0.582, allocations: 343.2 kB / 0.5175 GB, free: 86.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008528/0.5829, allocations: 415.9 kB / 0.5179 GB, free: 86.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009078/0.5838, allocations: 0.561 MB / 0.5185 GB, free: 85.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008852/0.5847, allocations: 456 kB / 0.5189 GB, free: 85.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.5847, allocations: 3.375 kB / 0.5189 GB, free: 85.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002109/0.5868, allocations: 1.147 MB / 0.52 GB, free: 85.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.5868, allocations: 10.88 kB / 0.52 GB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.5869, allocations: 3.688 kB / 0.52 GB, free: 85.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.5869, allocations: 14.69 kB / 0.5201 GB, free: 85.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.5882, allocations: 339.5 kB / 0.5204 GB, free: 85.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.347e-05/0.5882, allocations: 7.719 kB / 0.5204 GB, free: 85.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009077/0.5891, allocations: 122.2 kB / 0.5205 GB, free: 85.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.405e-05/0.5892, allocations: 33.72 kB / 0.5205 GB, free: 85.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (117): * Single equations (assignments): 117 * 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.000427/0.5896, allocations: 280.2 kB / 0.5208 GB, free: 85.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.5898, allocations: 98.47 kB / 0.5209 GB, free: 85.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009663/0.5907, allocations: 494.4 kB / 0.5214 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.5908, allocations: 10.12 kB / 0.5214 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.5908, allocations: 7.953 kB / 0.5214 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.5908, allocations: 6.109 kB / 0.5214 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003831/0.5946, allocations: 2.925 MB / 0.5242 GB, free: 83.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.858e-06/0.5947, allocations: 21.08 kB / 0.5243 GB, free: 83.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000907/0.5956, allocations: 267.1 kB / 0.5245 GB, free: 83.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.354e-05/0.5956, allocations: 18.97 kB / 0.5245 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.474e-05/0.5956, allocations: 23.62 kB / 0.5246 GB, free: 83.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.161e-05/0.5957, allocations: 25.62 kB / 0.5246 GB, free: 83.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/0.5957, allocations: 14.16 kB / 0.5246 GB, free: 83.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001636/0.5973, allocations: 1.751 MB / 0.5263 GB, free: 81.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002356/0.5976, allocations: 202 kB / 0.5265 GB, free: 81.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.5977, allocations: 28.69 kB / 0.5265 GB, free: 81.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007213/0.5984, allocations: 82 kB / 0.5266 GB, free: 81.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.5985, allocations: 86.91 kB / 0.5267 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.627e-05/0.5986, allocations: 39.52 kB / 0.5267 GB, free: 81.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006924/0.5993, allocations: 0.6313 MB / 0.5273 GB, free: 80.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5993, allocations: 3.938 kB / 0.5274 GB, free: 80.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000804/0.6001, allocations: 239.8 kB / 0.5276 GB, free: 80.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.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 (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 Backend phase and start with SimCode phase: time 0.002773/0.6029, allocations: 5.548 MB / 0.533 GB, free: 74.79 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001717/0.6046, allocations: 0.8963 MB / 0.5339 GB, free: 74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.6046, allocations: 448 / 0.5339 GB, free: 74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007728/0.6054, allocations: 467.6 kB / 0.5343 GB, free: 73.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008759/0.6063, allocations: 178.1 kB / 0.5345 GB, free: 73.45 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009636/0.6159, allocations: 8.821 MB / 0.5431 GB, free: 64.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005363/0.6165, allocations: 1.047 MB / 0.5441 GB, free: 63.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006658/0.6172, allocations: 127 kB / 0.5442 GB, free: 63.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004902/0.6177, allocations: 391 kB / 0.5446 GB, free: 63.51 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.6177, allocations: 4 kB / 0.5446 GB, free: 63.5 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02985/0.6476, allocations: 18.99 MB / 0.5632 GB, free: 46.36 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001476/0.6478, allocations: 260.7 kB / 0.5634 GB, free: 46.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.428/3.076, allocations: 3.938 kB / 0.5634 GB, free: 46.01 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat