Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002245/0.002245, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.971/1.971, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001501/0.001502, allocations: 96.83 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.059e-05/2.057e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3307, allocations: 47.56 MB / 362.4 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.137/0.4678, allocations: 86.11 MB / 448.6 MB, free: 80 kB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/0.4682, allocations: 79.95 kB / 448.6 MB, free: 0 / 331.1 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.1665/0.6347, allocations: 35.6 MB / 484.2 MB, free: 12.37 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.6347, allocations: 4 kB / 484.2 MB, free: 12.37 MB / 379.1 MB Notification: Performance of Transformations before backend: time 8.269e-05/0.6348, allocations: 24 kB / 484.3 MB, free: 12.34 MB / 379.1 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.004136/0.639, allocations: 1.131 MB / 485.4 MB, free: 11.17 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.435e-05/0.639, allocations: 8.031 kB / 485.4 MB, free: 11.16 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005619/0.6396, allocations: 122.6 kB / 485.5 MB, free: 11.04 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/0.6415, allocations: 0.6057 MB / 486.1 MB, free: 10.39 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001966/0.6417, allocations: 46 kB / 486.2 MB, free: 10.34 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002576/0.642, allocations: 63.91 kB / 486.2 MB, free: 10.28 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002439/0.6444, allocations: 0.7225 MB / 486.9 MB, free: 9.559 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002505/0.647, allocations: 0.8096 MB / 487.8 MB, free: 8.738 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.552e-05/0.6471, allocations: 7.938 kB / 487.8 MB, free: 8.73 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000119/0.6472, allocations: 0 / 487.8 MB, free: 8.73 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.116e-05/0.6472, allocations: 24 kB / 487.8 MB, free: 8.707 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009407/0.6567, allocations: 3.393 MB / 491.2 MB, free: 5.168 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001926/0.6586, allocations: 0.7376 MB / 491.9 MB, free: 4.406 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001222/0.6599, allocations: 436.7 kB / 492.3 MB, free: 3.977 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.548e-05/0.66, allocations: 23.67 kB / 492.4 MB, free: 3.957 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.908e-05/0.6601, allocations: 43.12 kB / 492.4 MB, free: 3.906 MB / 379.1 MB Notification: Performance of pre-optimization done (n=95): time 3.196e-06/0.6601, allocations: 0 / 492.4 MB, free: 3.906 MB / 379.1 MB Notification: Performance of matching and sorting (n=131): time 0.0123/0.6724, allocations: 3.666 MB / 496.1 MB, free: 56 kB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.147e-05/0.6726, allocations: 90.33 kB / 496.2 MB, free: 15.95 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001026/0.6736, allocations: 462.1 kB / 496.6 MB, free: 15.49 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002123/0.6738, allocations: 25.7 kB / 496.6 MB, free: 15.46 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003943/0.6742, allocations: 466.7 kB / 497.1 MB, free: 15 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005652/0.6748, allocations: 429.5 kB / 497.5 MB, free: 14.57 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.959e-05/0.6749, allocations: 0 / 497.5 MB, free: 14.57 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.6751, allocations: 354.8 kB / 497.9 MB, free: 14.22 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001054/0.6762, allocations: 346.6 kB / 498.2 MB, free: 13.88 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.6774, allocations: 485.9 kB / 498.7 MB, free: 13.37 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.6785, allocations: 401.3 kB / 499.1 MB, free: 12.98 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.6785, allocations: 0 / 499.1 MB, free: 12.98 MB / 395.1 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003079/0.6816, allocations: 1.071 MB / 0.4884 GB, free: 11.89 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.466e-05/0.6817, allocations: 8 kB / 0.4884 GB, free: 11.89 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.387e-05/0.6817, allocations: 0 / 0.4884 GB, free: 11.89 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006827/0.6824, allocations: 142.5 kB / 0.4886 GB, free: 11.74 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002397/0.6848, allocations: 287.6 kB / 0.4888 GB, free: 11.46 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005786/0.6907, allocations: 4.612 MB / 0.4933 GB, free: 6.496 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/0.6923, allocations: 51.95 kB / 0.4934 GB, free: 6.445 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/0.6926, allocations: 39.98 kB / 0.4934 GB, free: 6.406 MB / 395.1 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.0003336/0.6929, allocations: 137.3 kB / 0.4936 GB, free: 6.266 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003431/0.6963, allocations: 0.9688 MB / 0.4945 GB, free: 5.281 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007342/0.6971, allocations: 98.83 kB / 0.4946 GB, free: 5.184 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004023/0.7012, allocations: 0.7051 MB / 0.4953 GB, free: 4.465 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.357e-05/0.7013, allocations: 12 kB / 0.4953 GB, free: 4.453 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.341e-05/0.7013, allocations: 4 kB / 0.4953 GB, free: 4.449 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.78e-05/0.7014, allocations: 7.984 kB / 0.4953 GB, free: 4.441 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/0.7135, allocations: 2.74 MB / 0.498 GB, free: 1.586 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.34e-05/0.7136, allocations: 4 kB / 0.498 GB, free: 1.582 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00341/0.717, allocations: 256 kB / 0.4982 GB, free: 1.332 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001043/0.7181, allocations: 122.5 kB / 0.4983 GB, free: 1.203 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002564/0.7184, allocations: 19.94 kB / 0.4984 GB, free: 1.184 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2743/0.9928, allocations: 4.205 MB / 0.5025 GB, free: 106.8 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/0.9929, allocations: 5.031 kB / 0.5025 GB, free: 106.8 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004217/0.9971, allocations: 1.847 MB / 0.5043 GB, free: 106.3 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003861/0.9975, allocations: 164.6 kB / 0.5044 GB, free: 106.2 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002905/0.9978, allocations: 5.531 kB / 0.5044 GB, free: 106.2 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00141/0.9993, allocations: 58.94 kB / 0.5045 GB, free: 106.2 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003572/0.9997, allocations: 100.8 kB / 0.5046 GB, free: 106.2 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.9998, allocations: 35.77 kB / 0.5046 GB, free: 106.2 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0007175/1.001, allocations: 358.8 kB / 0.505 GB, free: 106.1 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.11e-07/1.001, allocations: 0.7656 kB / 0.505 GB, free: 106.1 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002026/1.003, allocations: 223.3 kB / 0.5052 GB, free: 106.1 MB / 395.1 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.005127/1.008, allocations: 3.182 MB / 0.5083 GB, free: 104.3 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.003501/1.011, allocations: 1.293 MB / 0.5096 GB, free: 104 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/1.011, allocations: 1.375 kB / 0.5096 GB, free: 104 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002142/1.014, allocations: 0.8693 MB / 0.5104 GB, free: 103.7 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/1.015, allocations: 134.7 kB / 0.5105 GB, free: 103.7 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006979/1.022, allocations: 1.891 MB / 0.5124 GB, free: 103.1 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008381/1.023, allocations: 1.058 MB / 0.5134 GB, free: 102.4 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001194/1.025, allocations: 403.6 kB / 0.5138 GB, free: 102.4 MB / 395.1 MB Notification: Performance of SimCode: time 1.312e-06/1.025, allocations: 0 / 0.5138 GB, free: 102.4 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.011/4.036, allocations: 31.07 MB / 0.5441 GB, free: 93.44 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)