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.001524/0.001524, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.473/1.473, allocations: 221.3 MB / 235.5 MB, free: 2.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009286/0.0009281, allocations: 97.11 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.408e-05/3.433e-05, allocations: 4 kB / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1236, allocations: 50.4 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3314/0.455, allocations: 91.72 MB / 486.1 MB, free: 11.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.4553, allocations: 87.95 kB / 486.2 MB, free: 11.63 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.06071/0.516, allocations: 22.74 MB / 0.497 GB, free: 4.801 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.516, allocations: 0 / 0.497 GB, free: 4.801 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001271/0.5162, allocations: 24 kB / 0.497 GB, free: 4.777 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.003031/0.5192, allocations: 1.232 MB / 0.4982 GB, free: 3.496 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.5193, allocations: 12.03 kB / 0.4982 GB, free: 3.484 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003665/0.5197, allocations: 144 kB / 0.4983 GB, free: 3.336 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003885/0.5201, allocations: 130.4 kB / 0.4985 GB, free: 3.207 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001359/0.5214, allocations: 0.6538 MB / 0.4991 GB, free: 2.512 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000139/0.5216, allocations: 78 kB / 0.4992 GB, free: 2.438 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002228/0.5218, allocations: 99.91 kB / 0.4993 GB, free: 2.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001826/0.5237, allocations: 0.9312 MB / 0.5002 GB, free: 1.395 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.559e-05/0.5237, allocations: 7.938 kB / 0.5002 GB, free: 1.387 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.5238, allocations: 40 kB / 0.5002 GB, free: 1.348 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.293e-05/0.5239, allocations: 20 kB / 0.5002 GB, free: 1.328 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001509/0.5254, allocations: 0.7706 MB / 0.501 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006569/0.5319, allocations: 3.864 MB / 0.5048 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002079/0.5341, allocations: 0.8309 MB / 0.5056 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006645/0.5348, allocations: 375.4 kB / 0.5059 GB, free: 11.28 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.501e-05/0.5348, allocations: 16.55 kB / 0.506 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.663e-05/0.5349, allocations: 43.12 kB / 0.506 GB, free: 11.21 MB / 394.7 MB Notification: Performance of pre-optimization done (n=68): time 3.326e-06/0.5349, allocations: 0 / 0.506 GB, free: 11.21 MB / 394.7 MB Notification: Performance of matching and sorting (n=86): time 0.004127/0.539, allocations: 1.643 MB / 0.5076 GB, free: 9.566 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.966e-05/0.5391, allocations: 93.47 kB / 0.5077 GB, free: 9.457 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/0.5404, allocations: 0.809 MB / 0.5085 GB, free: 8.641 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.815e-05/0.5405, allocations: 41.7 kB / 0.5085 GB, free: 8.594 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003628/0.5408, allocations: 0.503 MB / 0.509 GB, free: 8.082 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000234/0.5411, allocations: 291.8 kB / 0.5093 GB, free: 7.793 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.138e-05/0.5411, allocations: 27.88 kB / 0.5093 GB, free: 7.766 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001445/0.5413, allocations: 345.9 kB / 0.5096 GB, free: 7.422 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005778/0.5419, allocations: 294 kB / 0.5099 GB, free: 7.137 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000639/0.5425, allocations: 462.1 kB / 0.5104 GB, free: 6.629 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005997/0.5431, allocations: 347 kB / 0.5107 GB, free: 6.289 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.5431, allocations: 0 / 0.5107 GB, free: 6.289 MB / 394.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001596/0.5447, allocations: 0.9195 MB / 0.5116 GB, free: 5.359 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.5448, allocations: 8.031 kB / 0.5116 GB, free: 5.352 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.209e-05/0.5448, allocations: 8 kB / 0.5116 GB, free: 5.344 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.696e-05/0.5448, allocations: 8 kB / 0.5116 GB, free: 5.336 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/0.5463, allocations: 347.5 kB / 0.512 GB, free: 4.996 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.427e-05/0.5463, allocations: 15.94 kB / 0.512 GB, free: 4.98 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.5473, allocations: 111.9 kB / 0.5121 GB, free: 4.871 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.183e-05/0.5474, allocations: 39.98 kB / 0.5121 GB, free: 4.832 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 121 * 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.0001904/0.5476, allocations: 160.9 kB / 0.5123 GB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002004/0.5479, allocations: 98.88 kB / 0.5124 GB, free: 4.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007752/0.5486, allocations: 370.4 kB / 0.5127 GB, free: 4.195 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/0.5487, allocations: 11.98 kB / 0.5127 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.886e-06/0.5487, allocations: 8 kB / 0.5127 GB, free: 4.176 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.5487, allocations: 3.984 kB / 0.5127 GB, free: 4.172 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00457/0.5533, allocations: 2.888 MB / 0.5156 GB, free: 1.086 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/0.5533, allocations: 8 kB / 0.5156 GB, free: 1.078 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.5544, allocations: 272.1 kB / 0.5158 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.487e-05/0.5544, allocations: 20 kB / 0.5158 GB, free: 0.793 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.571e-05/0.5545, allocations: 31.98 kB / 0.5159 GB, free: 0.7617 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.031e-05/0.5545, allocations: 23.92 kB / 0.5159 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.245e-05/0.5545, allocations: 15.94 kB / 0.5159 GB, free: 0.7227 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002117/0.5567, allocations: 1.671 MB / 0.5175 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000439/0.5571, allocations: 207.9 kB / 0.5177 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001996/0.5573, allocations: 28 kB / 0.5178 GB, free: 14.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008755/0.5582, allocations: 83.94 kB / 0.5178 GB, free: 14.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001476/0.5584, allocations: 95.69 kB / 0.5179 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.267e-05/0.5584, allocations: 36 kB / 0.518 GB, free: 14.14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009487/0.5594, allocations: 0.6241 MB / 0.5186 GB, free: 13.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5594, allocations: 0 / 0.5186 GB, free: 13.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001036/0.5604, allocations: 239.9 kB / 0.5188 GB, free: 13.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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.003908/0.5643, allocations: 5.66 MB / 0.5243 GB, free: 7.395 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.5656, allocations: 0.7155 MB / 0.525 GB, free: 6.676 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.552e-06/0.5657, allocations: 7.938 kB / 0.525 GB, free: 6.668 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006588/0.5663, allocations: 409.3 kB / 0.5254 GB, free: 6.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.5674, allocations: 190.8 kB / 0.5256 GB, free: 6.086 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003708/0.5711, allocations: 1.746 MB / 0.5273 GB, free: 4.16 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006521/0.5718, allocations: 1.049 MB / 0.5284 GB, free: 3.082 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007277/0.5726, allocations: 139.2 kB / 0.5285 GB, free: 2.941 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005934/0.5732, allocations: 391.3 kB / 0.5289 GB, free: 2.559 MB / 410.7 MB Notification: Performance of SimCode: time 7.92e-07/0.5732, allocations: 0 / 0.5289 GB, free: 2.559 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3145/0.8877, allocations: 19.27 MB / 0.5477 GB, free: 119.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/0.888, allocations: 235 kB / 0.5479 GB, free: 119.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.587/3.475, allocations: 2.5 kB / 0.5479 GB, free: 119.6 MB / 426.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