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.001233/0.001233, allocations: 181.2 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.268/1.268, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.0008925/0.0008925, allocations: 94.92 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002921/0.0002921, allocations: 4 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2087/0.209, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1011/0.3102, allocations: 89.21 MB / 490.8 MB, free: 7.215 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.3104, allocations: 87.95 kB / 490.9 MB, free: 7.129 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.3016/0.6121, allocations: 36.89 MB / 0.5154 GB, free: 93.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.6121, allocations: 0 / 0.5154 GB, free: 93.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.171e-05/0.6122, allocations: 24.78 kB / 0.5154 GB, free: 93.68 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.002215/0.6144, allocations: 1.245 MB / 0.5166 GB, free: 92.97 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.6144, allocations: 11.53 kB / 0.5166 GB, free: 92.97 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001493/0.6146, allocations: 147.9 kB / 0.5168 GB, free: 92.87 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001655/0.6148, allocations: 123.5 kB / 0.5169 GB, free: 92.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000845/0.6156, allocations: 0.6078 MB / 0.5175 GB, free: 92.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.6158, allocations: 83.31 kB / 0.5176 GB, free: 92.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.6159, allocations: 96.61 kB / 0.5177 GB, free: 92.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/0.6176, allocations: 1.023 MB / 0.5187 GB, free: 91.87 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.734e-05/0.6176, allocations: 3.906 kB / 0.5187 GB, free: 91.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.6178, allocations: 42.86 kB / 0.5187 GB, free: 91.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.201e-05/0.6178, allocations: 27.84 kB / 0.5187 GB, free: 91.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001749/0.6195, allocations: 0.9444 MB / 0.5197 GB, free: 91.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004547/0.6241, allocations: 3.575 MB / 0.5232 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001388/0.6255, allocations: 0.8703 MB / 0.524 GB, free: 88.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.302e-05/0.6256, allocations: 23.94 kB / 0.524 GB, free: 88.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.6257, allocations: 38.91 kB / 0.5241 GB, free: 88.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=95): time 3.537e-06/0.6257, allocations: 0 / 0.5241 GB, free: 88.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.009259/0.6349, allocations: 4.75 MB / 0.5287 GB, free: 84.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.815e-05/0.635, allocations: 98.16 kB / 0.5288 GB, free: 83.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005981/0.6356, allocations: 0.5413 MB / 0.5293 GB, free: 83.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.589e-05/0.6357, allocations: 45.7 kB / 0.5294 GB, free: 83.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001717/0.6359, allocations: 416.3 kB / 0.5298 GB, free: 82.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001992/0.6361, allocations: 429.5 kB / 0.5302 GB, free: 82.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.898e-05/0.6361, allocations: 24 kB / 0.5302 GB, free: 82.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.865e-05/0.6362, allocations: 394.7 kB / 0.5306 GB, free: 82.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007561/0.637, allocations: 434.4 kB / 0.531 GB, free: 81.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008156/0.6378, allocations: 0.5592 MB / 0.5315 GB, free: 81.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008184/0.6387, allocations: 483.7 kB / 0.532 GB, free: 80.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.6387, allocations: 4 kB / 0.532 GB, free: 80.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=150) (initialization): time 0.002111/0.6408, allocations: 1.308 MB / 0.5333 GB, free: 79.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.6408, allocations: 10.77 kB / 0.5333 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.6408, allocations: 4 kB / 0.5333 GB, free: 79.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003617/0.6412, allocations: 126.5 kB / 0.5334 GB, free: 79.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.6423, allocations: 279.6 kB / 0.5337 GB, free: 78.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002583/0.6449, allocations: 4.549 MB / 0.5381 GB, free: 73.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.6459, allocations: 83.52 kB / 0.5382 GB, free: 73.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.536e-05/0.646, allocations: 39.98 kB / 0.5382 GB, free: 73.76 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 135 * 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%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005338/0.6466, allocations: 288.7 kB / 0.5385 GB, free: 73.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001572/0.6467, allocations: 94.88 kB / 0.5386 GB, free: 73.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.6482, allocations: 0.8272 MB / 0.5394 GB, free: 72.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.6482, allocations: 12 kB / 0.5394 GB, free: 72.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.6483, allocations: 11.98 kB / 0.5394 GB, free: 72.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.6483, allocations: 3.984 kB / 0.5394 GB, free: 72.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003959/0.6522, allocations: 3.012 MB / 0.5424 GB, free: 69.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.463e-06/0.6523, allocations: 0 / 0.5424 GB, free: 69.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009015/0.6532, allocations: 232 kB / 0.5426 GB, free: 69.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003964/0.6536, allocations: 162.2 kB / 0.5428 GB, free: 69.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.479e-05/0.6537, allocations: 31.98 kB / 0.5428 GB, free: 68.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002815/0.6565, allocations: 5.617 MB / 0.5483 GB, free: 62.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.6565, allocations: 7.938 kB / 0.5483 GB, free: 62.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002933/0.6595, allocations: 2.106 MB / 0.5503 GB, free: 60.61 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002858/0.6598, allocations: 172.1 kB / 0.5505 GB, free: 60.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.6599, allocations: 24 kB / 0.5505 GB, free: 60.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006588/0.6605, allocations: 79.94 kB / 0.5506 GB, free: 60.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.6607, allocations: 92.39 kB / 0.5507 GB, free: 60.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.02e-05/0.6608, allocations: 39.98 kB / 0.5507 GB, free: 60.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005463/0.6613, allocations: 447.1 kB / 0.5512 GB, free: 59.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6614, allocations: 0 / 0.5512 GB, free: 59.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009712/0.6623, allocations: 272 kB / 0.5514 GB, free: 59.48 MB / 378.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.coil.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 110 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00335/0.6657, allocations: 3.455 MB / 0.5548 GB, free: 55.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002308/0.6681, allocations: 1.45 MB / 0.5562 GB, free: 54.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.6681, allocations: 3.938 kB / 0.5562 GB, free: 54.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001326/0.6694, allocations: 1.097 MB / 0.5573 GB, free: 53.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/0.6704, allocations: 150.2 kB / 0.5574 GB, free: 53.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008698/0.6791, allocations: 7.984 MB / 0.5652 GB, free: 44.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000441/0.6796, allocations: 1.056 MB / 0.5662 GB, free: 43.85 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005735/0.6802, allocations: 123.7 kB / 0.5664 GB, free: 43.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/0.6807, allocations: 395.3 kB / 0.5667 GB, free: 43.34 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6807, allocations: 0 / 0.5667 GB, free: 43.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0326/0.7133, allocations: 20.03 MB / 0.5863 GB, free: 23.63 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/0.7135, allocations: 232.8 kB / 0.5865 GB, free: 23.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.588/3.301, allocations: 0 / 0.5865 GB, free: 23.38 MB / 378.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)