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.001415/0.001415, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.0008996/0.0008997, allocations: 100.8 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.856e-05/1.858e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08979/0.08982, allocations: 50.41 MB / 387.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3736/0.4635, allocations: 91.05 MB / 478.6 MB, free: 3.672 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002492/0.4638, allocations: 91.94 kB / 478.7 MB, free: 3.582 MB / 346.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.05932/0.5231, allocations: 22.52 MB / 0.4895 GB, free: 12.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5232, allocations: 4.188 kB / 0.4895 GB, free: 12.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.744e-05/0.5232, allocations: 31.92 kB / 0.4895 GB, free: 12.95 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.002364/0.5256, allocations: 1.224 MB / 0.4907 GB, free: 11.68 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.5257, allocations: 8.031 kB / 0.4907 GB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002167/0.5259, allocations: 130.4 kB / 0.4908 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009955/0.5269, allocations: 0.6538 MB / 0.4915 GB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001128/0.527, allocations: 53.94 kB / 0.4915 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001231/0.5272, allocations: 52 kB / 0.4916 GB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001334/0.5285, allocations: 0.7186 MB / 0.4923 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001389/0.5299, allocations: 0.799 MB / 0.4931 GB, free: 9.207 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.084e-05/0.5299, allocations: 7.906 kB / 0.4931 GB, free: 9.199 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.809e-05/0.53, allocations: 0 / 0.4931 GB, free: 9.199 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.768e-05/0.53, allocations: 24 kB / 0.4931 GB, free: 9.176 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005452/0.5355, allocations: 3.685 MB / 0.4967 GB, free: 5.305 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001845/0.5374, allocations: 0.803 MB / 0.4975 GB, free: 4.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005453/0.5379, allocations: 349.4 kB / 0.4978 GB, free: 4.137 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.23e-05/0.538, allocations: 16.55 kB / 0.4978 GB, free: 4.121 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.538, allocations: 47.06 kB / 0.4979 GB, free: 4.066 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 2.264e-06/0.538, allocations: 0 / 0.4979 GB, free: 4.066 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.002719/0.5408, allocations: 1.404 MB / 0.4992 GB, free: 2.656 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.5408, allocations: 89.55 kB / 0.4993 GB, free: 2.551 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008873/0.5417, allocations: 0.6912 MB / 0.5 GB, free: 1.852 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.603e-05/0.5418, allocations: 25.7 kB / 0.5 GB, free: 1.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003248/0.5421, allocations: 0.5145 MB / 0.5005 GB, free: 1.297 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.5423, allocations: 279.7 kB / 0.5008 GB, free: 1.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.391e-05/0.5424, allocations: 0 / 0.5008 GB, free: 1.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000189/0.5426, allocations: 398.7 kB / 0.5012 GB, free: 0.6211 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00046/0.543, allocations: 278.6 kB / 0.5014 GB, free: 356 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005756/0.5436, allocations: 438.4 kB / 0.5019 GB, free: 15.86 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005154/0.5441, allocations: 314 kB / 0.5022 GB, free: 15.55 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.5441, allocations: 4 kB / 0.5022 GB, free: 15.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001336/0.5455, allocations: 0.8377 MB / 0.503 GB, free: 14.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.5455, allocations: 12.03 kB / 0.503 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.5455, allocations: 4 kB / 0.503 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.5456, allocations: 8 kB / 0.503 GB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/0.547, allocations: 351.5 kB / 0.5033 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.23e-05/0.547, allocations: 8 kB / 0.5033 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008576/0.5479, allocations: 95.91 kB / 0.5034 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.851e-05/0.548, allocations: 39.98 kB / 0.5035 GB, free: 14.2 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.0001538/0.5481, allocations: 124.7 kB / 0.5036 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00102/0.5492, allocations: 0.6355 MB / 0.5042 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.5493, allocations: 86.97 kB / 0.5043 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000595/0.5499, allocations: 329.7 kB / 0.5046 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/0.5499, allocations: 8 kB / 0.5046 GB, free: 13 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.55, allocations: 3.938 kB / 0.5046 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.55, allocations: 3.984 kB / 0.5046 GB, free: 12.99 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003882/0.5539, allocations: 2.663 MB / 0.5072 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.5539, allocations: 15.98 kB / 0.5072 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.5549, allocations: 272.3 kB / 0.5075 GB, free: 9.859 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.742e-05/0.5549, allocations: 16 kB / 0.5075 GB, free: 9.844 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.674e-05/0.555, allocations: 16 kB / 0.5075 GB, free: 9.828 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.511e-05/0.555, allocations: 19.92 kB / 0.5075 GB, free: 9.809 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.899e-06/0.555, allocations: 15.94 kB / 0.5076 GB, free: 9.793 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001549/0.5566, allocations: 1.629 MB / 0.5092 GB, free: 7.723 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002312/0.5568, allocations: 192 kB / 0.5093 GB, free: 7.516 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00012/0.557, allocations: 16 kB / 0.5094 GB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007093/0.5577, allocations: 67.94 kB / 0.5094 GB, free: 7.434 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001353/0.5578, allocations: 99.69 kB / 0.5095 GB, free: 7.336 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.419e-05/0.5579, allocations: 36 kB / 0.5095 GB, free: 7.301 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000636/0.5585, allocations: 0.5265 MB / 0.5101 GB, free: 6.777 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5585, allocations: 0 / 0.5101 GB, free: 6.777 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008598/0.5594, allocations: 203.9 kB / 0.5103 GB, free: 6.578 MB / 394.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.003302/0.5627, allocations: 5.577 MB / 0.5157 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.5638, allocations: 0.6593 MB / 0.5163 GB, free: 84 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.5638, allocations: 0 / 0.5163 GB, free: 84 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006083/0.5644, allocations: 379.3 kB / 0.5167 GB, free: 15.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009471/0.5654, allocations: 166.9 kB / 0.5169 GB, free: 15.55 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003195/0.5686, allocations: 1.636 MB / 0.5185 GB, free: 13.73 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006196/0.5692, allocations: 1.057 MB / 0.5195 GB, free: 12.65 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0005949/0.5698, allocations: 126.7 kB / 0.5196 GB, free: 12.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005316/0.5704, allocations: 387.3 kB / 0.52 GB, free: 12.14 MB / 410.7 MB Notification: Performance of SimCode: time 6.51e-07/0.5704, allocations: 0 / 0.52 GB, free: 12.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04689/0.6173, allocations: 17.2 MB / 0.5368 GB, free: 11.04 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002628/0.6176, allocations: 205.2 kB / 0.537 GB, free: 10.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.413/3.031, allocations: 0 / 0.537 GB, free: 10.77 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