Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001414/0.001414, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.584/1.584, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008835/0.0008835, allocations: 86.7 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.788e-05/1.797e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.094/0.09403, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3409/0.435, allocations: 86.36 MB / 449.5 MB, free: 9.074 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.4353, allocations: 80.25 kB / 449.6 MB, free: 9.031 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Magnetic/FluxTubes.mo:1363:11-1363:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.09349/0.5288, allocations: 35.59 MB / 485.2 MB, free: 11.42 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5288, allocations: 0 / 485.2 MB, free: 11.42 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.172e-05/0.5289, allocations: 20 kB / 485.2 MB, free: 11.4 MB / 362.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.002327/0.5312, allocations: 1.143 MB / 486.4 MB, free: 10.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.5313, allocations: 8.031 kB / 486.4 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002258/0.5315, allocations: 118.6 kB / 486.5 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009889/0.5325, allocations: 0.6018 MB / 487.1 MB, free: 9.441 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.5326, allocations: 46 kB / 487.1 MB, free: 9.398 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.5328, allocations: 59.91 kB / 487.2 MB, free: 9.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001338/0.5341, allocations: 0.7264 MB / 487.9 MB, free: 8.613 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001481/0.5356, allocations: 0.8058 MB / 488.7 MB, free: 7.797 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.307e-05/0.5357, allocations: 7.938 kB / 488.7 MB, free: 7.789 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.3e-05/0.5357, allocations: 7.922 kB / 488.7 MB, free: 7.781 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.004e-05/0.5358, allocations: 24 kB / 488.8 MB, free: 7.758 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004996/0.5408, allocations: 3.4 MB / 492.2 MB, free: 4.211 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.5418, allocations: 0.7454 MB / 492.9 MB, free: 3.441 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006474/0.5425, allocations: 428.7 kB / 493.3 MB, free: 3.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.799e-05/0.5425, allocations: 24.53 kB / 493.4 MB, free: 2.996 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.5426, allocations: 43.12 kB / 493.4 MB, free: 2.945 MB / 362.7 MB Notification: Performance of pre-optimization done (n=95): time 2.455e-06/0.5426, allocations: 0 / 493.4 MB, free: 2.945 MB / 362.7 MB Notification: Performance of matching and sorting (n=131): time 0.006506/0.5491, allocations: 3.663 MB / 497.1 MB, free: 15.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.5492, allocations: 90.33 kB / 497.1 MB, free: 14.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005512/0.5497, allocations: 466.1 kB / 497.6 MB, free: 14.53 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.672e-05/0.5498, allocations: 29.7 kB / 497.6 MB, free: 14.49 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002637/0.5501, allocations: 432.3 kB / 498.1 MB, free: 14.06 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002938/0.5504, allocations: 425.5 kB / 498.5 MB, free: 13.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-05/0.5504, allocations: 0 / 498.5 MB, free: 13.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.5506, allocations: 398.7 kB / 498.9 MB, free: 13.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005557/0.5512, allocations: 342.6 kB / 499.2 MB, free: 12.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006384/0.5518, allocations: 486 kB / 499.7 MB, free: 12.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006323/0.5525, allocations: 401.2 kB / 0.4883 GB, free: 12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.5525, allocations: 0 / 0.4883 GB, free: 12 MB / 378.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.001761/0.5542, allocations: 1.102 MB / 0.4894 GB, free: 10.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.5543, allocations: 4 kB / 0.4894 GB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.5543, allocations: 4 kB / 0.4894 GB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003919/0.5547, allocations: 142.5 kB / 0.4896 GB, free: 10.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001201/0.5559, allocations: 291.6 kB / 0.4898 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003846/0.5597, allocations: 4.615 MB / 0.4943 GB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008334/0.5606, allocations: 51.95 kB / 0.4944 GB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.294e-05/0.5607, allocations: 40.05 kB / 0.4944 GB, free: 5.391 MB / 378.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.0002019/0.5609, allocations: 124.8 kB / 0.4945 GB, free: 5.262 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001606/0.5625, allocations: 0.9765 MB / 0.4955 GB, free: 4.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.5627, allocations: 94.92 kB / 0.4956 GB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001292/0.564, allocations: 0.7051 MB / 0.4963 GB, free: 3.457 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.564, allocations: 12 kB / 0.4963 GB, free: 3.445 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/0.564, allocations: 7.938 kB / 0.4963 GB, free: 3.438 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-05/0.564, allocations: 11.97 kB / 0.4963 GB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00428/0.5683, allocations: 2.736 MB / 0.499 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.639e-06/0.5684, allocations: 4 kB / 0.499 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.5695, allocations: 259.9 kB / 0.4992 GB, free: 324 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003819/0.5699, allocations: 130.4 kB / 0.4994 GB, free: 184 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-05/0.5699, allocations: 15.94 kB / 0.4994 GB, free: 168 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003259/0.5732, allocations: 4.21 MB / 0.5035 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.5732, allocations: 128 / 0.5035 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002595/0.5758, allocations: 1.852 MB / 0.5053 GB, free: 9.633 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002222/0.5761, allocations: 172 kB / 0.5055 GB, free: 9.445 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001383/0.5762, allocations: 4 kB / 0.5055 GB, free: 9.441 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006842/0.5769, allocations: 59.89 kB / 0.5055 GB, free: 9.383 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.5771, allocations: 88.61 kB / 0.5056 GB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.765e-05/0.5771, allocations: 43.98 kB / 0.5056 GB, free: 9.254 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004671/0.5776, allocations: 355 kB / 0.506 GB, free: 8.906 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5776, allocations: 0 / 0.506 GB, free: 8.906 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009879/0.5786, allocations: 228 kB / 0.5062 GB, free: 8.684 MB / 394.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.003203/0.5818, allocations: 3.173 MB / 0.5093 GB, free: 5.402 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002049/0.5839, allocations: 1.285 MB / 0.5106 GB, free: 4.094 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.5839, allocations: 0 / 0.5106 GB, free: 4.094 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.585, allocations: 0.8801 MB / 0.5114 GB, free: 3.184 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007939/0.5858, allocations: 141 kB / 0.5115 GB, free: 3.047 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003535/0.5894, allocations: 1.86 MB / 0.5134 GB, free: 1.113 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006257/0.59, allocations: 1.06 MB / 0.5144 GB, free: 28 kB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006056/0.5906, allocations: 119.6 kB / 0.5145 GB, free: 15.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005503/0.5912, allocations: 387.3 kB / 0.5149 GB, free: 15.53 MB / 410.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5912, allocations: 0 / 0.5149 GB, free: 15.53 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2267/0.8179, allocations: 18.57 MB / 0.533 GB, free: 119.9 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001523/0.8181, allocations: 161.8 kB / 0.5332 GB, free: 119.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.747/3.565, allocations: 0 / 0.5332 GB, free: 119.7 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)