Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",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.0009919/0.0009919, 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.301/1.301, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0009555/0.0009556, allocations: 92.48 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.854e-05/1.856e-05, allocations: 4 kB / 337.1 MB, free: 9.941 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09669/0.09673, allocations: 50.42 MB / 387.6 MB, free: 7.48 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3166/0.4133, allocations: 88.47 MB / 476 MB, free: 6.312 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002376/0.4136, allocations: 81.67 kB / 476.1 MB, free: 6.234 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.09791/0.5116, allocations: 36.58 MB / 0.5007 GB, free: 1.512 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.5116, allocations: 0 / 0.5007 GB, free: 1.512 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.524e-05/0.5117, allocations: 20 kB / 0.5007 GB, free: 1.492 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.002263/0.5139, allocations: 1.138 MB / 0.5018 GB, free: 316 kB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.514, allocations: 8.031 kB / 0.5018 GB, free: 308 kB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002099/0.5142, allocations: 126.5 kB / 0.5019 GB, free: 180 kB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009456/0.5152, allocations: 0.6096 MB / 0.5025 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001193/0.5153, allocations: 45.94 kB / 0.5026 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.5154, allocations: 63.91 kB / 0.5026 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001416/0.5169, allocations: 0.7264 MB / 0.5033 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00153/0.5184, allocations: 0.8018 MB / 0.5041 GB, free: 13.88 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.115e-05/0.5185, allocations: 4 kB / 0.5041 GB, free: 13.87 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.234e-05/0.5185, allocations: 4 kB / 0.5041 GB, free: 13.87 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.079e-05/0.5186, allocations: 24 kB / 0.5042 GB, free: 13.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005081/0.5237, allocations: 3.385 MB / 0.5075 GB, free: 10.32 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.5247, allocations: 0.7498 MB / 0.5082 GB, free: 9.543 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006726/0.5254, allocations: 435.5 kB / 0.5086 GB, free: 9.113 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.996e-05/0.5255, allocations: 16.55 kB / 0.5086 GB, free: 9.098 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.5255, allocations: 43.75 kB / 0.5087 GB, free: 9.047 MB / 394.7 MB Notification: Performance of pre-optimization done (n=95): time 2.715e-06/0.5255, allocations: 0 / 0.5087 GB, free: 9.047 MB / 394.7 MB Notification: Performance of matching and sorting (n=131): time 0.006776/0.5323, allocations: 3.65 MB / 0.5122 GB, free: 5.211 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.621e-05/0.5324, allocations: 94.33 kB / 0.5123 GB, free: 5.098 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006181/0.533, allocations: 466.1 kB / 0.5128 GB, free: 4.633 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.166e-05/0.5331, allocations: 25.7 kB / 0.5128 GB, free: 4.602 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/0.5334, allocations: 432.3 kB / 0.5132 GB, free: 4.172 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003255/0.5337, allocations: 429.5 kB / 0.5136 GB, free: 3.746 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.279e-05/0.5338, allocations: 0 / 0.5136 GB, free: 3.746 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001908/0.534, allocations: 395.4 kB / 0.514 GB, free: 3.352 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005808/0.5346, allocations: 346.6 kB / 0.5143 GB, free: 3.012 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006746/0.5353, allocations: 485.9 kB / 0.5148 GB, free: 2.508 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006674/0.5359, allocations: 397.3 kB / 0.5152 GB, free: 2.121 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.536, allocations: 4 kB / 0.5152 GB, free: 2.117 MB / 394.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001927/0.5379, allocations: 1.102 MB / 0.5162 GB, free: 1 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.568e-05/0.5379, allocations: 13.03 kB / 0.5163 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.538, allocations: 0 / 0.5163 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004437/0.5384, allocations: 158.5 kB / 0.5164 GB, free: 0.8242 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/0.5396, allocations: 291.6 kB / 0.5167 GB, free: 0.5391 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004141/0.5437, allocations: 4.603 MB / 0.5212 GB, free: 11.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009941/0.5448, allocations: 56.02 kB / 0.5212 GB, free: 11.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.449e-05/0.5449, allocations: 44.14 kB / 0.5213 GB, free: 11.49 MB / 410.7 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 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 139 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 5,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003014/0.5452, allocations: 120.7 kB / 0.5214 GB, free: 11.36 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001873/0.5471, allocations: 0.9804 MB / 0.5223 GB, free: 10.37 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.5472, allocations: 86.97 kB / 0.5224 GB, free: 10.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/0.5485, allocations: 0.7089 MB / 0.5231 GB, free: 9.562 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.5486, allocations: 16 kB / 0.5231 GB, free: 9.547 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.5486, allocations: 4 kB / 0.5231 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.697e-05/0.5486, allocations: 7.969 kB / 0.5231 GB, free: 9.535 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004081/0.5527, allocations: 2.759 MB / 0.5258 GB, free: 6.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.498e-06/0.5527, allocations: 4 kB / 0.5258 GB, free: 6.656 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.5538, allocations: 252 kB / 0.5261 GB, free: 6.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003609/0.5542, allocations: 118.5 kB / 0.5262 GB, free: 6.285 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.421e-05/0.5542, allocations: 15.98 kB / 0.5262 GB, free: 6.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002978/0.5572, allocations: 4.222 MB / 0.5303 GB, free: 1.707 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.77e-06/0.5573, allocations: 4 kB / 0.5303 GB, free: 1.703 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002474/0.5597, allocations: 1.845 MB / 0.5321 GB, free: 15.73 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00024/0.56, allocations: 160.1 kB / 0.5323 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001153/0.5601, allocations: 8 kB / 0.5323 GB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006854/0.5608, allocations: 67.84 kB / 0.5324 GB, free: 15.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.561, allocations: 84.66 kB / 0.5324 GB, free: 15.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.441e-05/0.561, allocations: 35.98 kB / 0.5325 GB, free: 15.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0005021/0.5615, allocations: 362.9 kB / 0.5328 GB, free: 15.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5616, allocations: 0 / 0.5328 GB, free: 15.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001091/0.5627, allocations: 228 kB / 0.533 GB, free: 14.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.g_ma.Phi,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 119 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003136/0.5658, allocations: 3.191 MB / 0.5362 GB, free: 11.49 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00205/0.5679, allocations: 1.277 MB / 0.5374 GB, free: 10.18 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.5679, allocations: 0.625 kB / 0.5374 GB, free: 10.18 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001103/0.569, allocations: 0.8712 MB / 0.5383 GB, free: 9.281 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.5701, allocations: 140 kB / 0.5384 GB, free: 9.148 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003723/0.5738, allocations: 1.854 MB / 0.5402 GB, free: 7.223 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000644/0.5745, allocations: 1.06 MB / 0.5412 GB, free: 6.133 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0006094/0.5751, allocations: 115.6 kB / 0.5414 GB, free: 6.016 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005632/0.5757, allocations: 387.3 kB / 0.5417 GB, free: 5.637 MB / 426.7 MB Notification: Performance of SimCode: time 7.61e-07/0.5757, allocations: 0 / 0.5417 GB, free: 5.637 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2635/0.8392, allocations: 18.6 MB / 0.5599 GB, free: 120.6 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001514/0.8394, allocations: 166.1 kB / 0.56 GB, free: 120.4 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.427/3.266, allocations: 0.9375 kB / 0.56 GB, free: 120.4 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)