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.001392/0.001392, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.377/1.377, allocations: 221.3 MB / 235.5 MB, free: 2.977 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.0007975/0.0007976, allocations: 92.91 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.505e-05/3.521e-05, allocations: 4 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1358, allocations: 50.42 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3856/0.5214, allocations: 89.14 MB / 483.5 MB, free: 14.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/0.5218, allocations: 79.95 kB / 483.6 MB, free: 14.25 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.1163/0.6381, allocations: 36.93 MB / 0.5083 GB, free: 9.188 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.6381, allocations: 0 / 0.5083 GB, free: 9.188 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.394e-05/0.6382, allocations: 20 kB / 0.5083 GB, free: 9.168 MB / 394.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.002139/0.6403, allocations: 1.138 MB / 0.5094 GB, free: 7.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.171e-05/0.6404, allocations: 8.031 kB / 0.5094 GB, free: 7.973 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000181/0.6406, allocations: 148.1 kB / 0.5096 GB, free: 7.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.6408, allocations: 126.5 kB / 0.5097 GB, free: 7.695 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009122/0.6417, allocations: 0.5979 MB / 0.5103 GB, free: 7.059 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001269/0.6418, allocations: 81.94 kB / 0.5104 GB, free: 6.977 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001458/0.642, allocations: 99.91 kB / 0.5105 GB, free: 6.879 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002191/0.6442, allocations: 0.9464 MB / 0.5114 GB, free: 5.918 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.136e-05/0.6443, allocations: 4 kB / 0.5114 GB, free: 5.914 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001619/0.6445, allocations: 36 kB / 0.5114 GB, free: 5.879 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.285e-05/0.6445, allocations: 20 kB / 0.5114 GB, free: 5.859 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002819/0.6474, allocations: 0.7853 MB / 0.5122 GB, free: 5.074 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008092/0.6555, allocations: 3.572 MB / 0.5157 GB, free: 1.344 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001787/0.6573, allocations: 0.7985 MB / 0.5165 GB, free: 0.5234 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001076/0.6584, allocations: 447.8 kB / 0.5169 GB, free: 80 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.55e-05/0.6585, allocations: 25.16 kB / 0.5169 GB, free: 56 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.085e-05/0.6585, allocations: 43.42 kB / 0.517 GB, free: 4 kB / 394.7 MB Notification: Performance of pre-optimization done (n=95): time 5.871e-06/0.6586, allocations: 4 kB / 0.517 GB, free: 0 / 394.7 MB Notification: Performance of matching and sorting (n=131): time 0.01289/0.6715, allocations: 4.268 MB / 0.5211 GB, free: 11.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/0.6716, allocations: 94.33 kB / 0.5212 GB, free: 11.44 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001127/0.6727, allocations: 0.5245 MB / 0.5217 GB, free: 10.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.6728, allocations: 45.7 kB / 0.5218 GB, free: 10.86 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004238/0.6733, allocations: 428.3 kB / 0.5222 GB, free: 10.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005138/0.6738, allocations: 441.5 kB / 0.5226 GB, free: 9.992 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.4e-05/0.6739, allocations: 24 kB / 0.5226 GB, free: 9.969 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002554/0.6742, allocations: 398.7 kB / 0.523 GB, free: 9.57 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009858/0.6752, allocations: 374.6 kB / 0.5234 GB, free: 9.203 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001112/0.6763, allocations: 0.5005 MB / 0.5239 GB, free: 8.672 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001072/0.6774, allocations: 427.7 kB / 0.5243 GB, free: 8.258 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.6774, allocations: 0 / 0.5243 GB, free: 8.258 MB / 410.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003112/0.6805, allocations: 1.214 MB / 0.5255 GB, free: 7.02 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.6805, allocations: 9.875 kB / 0.5255 GB, free: 7.012 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.6806, allocations: 8 kB / 0.5255 GB, free: 7.004 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006089/0.6812, allocations: 146.5 kB / 0.5256 GB, free: 6.852 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001659/0.6829, allocations: 287.6 kB / 0.5259 GB, free: 6.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005514/0.6884, allocations: 4.766 MB / 0.5305 GB, free: 1.402 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001409/0.6898, allocations: 80.02 kB / 0.5306 GB, free: 1.324 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.69, allocations: 39.98 kB / 0.5307 GB, free: 1.285 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 {(1,100.0%) 6,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003588/0.6903, allocations: 184.7 kB / 0.5308 GB, free: 1.098 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002611/0.6906, allocations: 94.88 kB / 0.5309 GB, free: 1.004 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002111/0.6927, allocations: 0.7911 MB / 0.5317 GB, free: 204 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.467e-05/0.6928, allocations: 12 kB / 0.5317 GB, free: 192 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.75e-05/0.6928, allocations: 11.94 kB / 0.5317 GB, free: 180 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.195e-05/0.6928, allocations: 11.92 kB / 0.5317 GB, free: 168 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006339/0.6992, allocations: 2.958 MB / 0.5346 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.6992, allocations: 4 kB / 0.5346 GB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001552/0.7008, allocations: 256 kB / 0.5349 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005259/0.7013, allocations: 130.4 kB / 0.535 GB, free: 12.69 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001082/0.7014, allocations: 35.92 kB / 0.535 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004579/0.706, allocations: 4.385 MB / 0.5393 GB, free: 7.871 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.419e-06/0.7061, allocations: 8.156 kB / 0.5393 GB, free: 7.863 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004276/0.7104, allocations: 1.945 MB / 0.5412 GB, free: 5.797 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004597/0.7109, allocations: 172 kB / 0.5414 GB, free: 5.609 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001762/0.7111, allocations: 35.98 kB / 0.5414 GB, free: 5.574 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.7121, allocations: 79.91 kB / 0.5415 GB, free: 5.496 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002505/0.7124, allocations: 88.59 kB / 0.5416 GB, free: 5.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.7125, allocations: 39.98 kB / 0.5416 GB, free: 5.371 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0008932/0.7134, allocations: 431.2 kB / 0.542 GB, free: 4.945 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7134, allocations: 0 / 0.542 GB, free: 4.945 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001648/0.7151, allocations: 272 kB / 0.5423 GB, free: 4.68 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.005046/0.7201, allocations: 3.315 MB / 0.5455 GB, free: 1.262 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.2678/0.988, allocations: 1.355 MB / 0.5468 GB, free: 119.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/0.988, allocations: 1.406 kB / 0.5468 GB, free: 119.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/0.9897, allocations: 0.9135 MB / 0.5477 GB, free: 119 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.9908, allocations: 157.7 kB / 0.5479 GB, free: 119 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004368/0.9952, allocations: 1.966 MB / 0.5498 GB, free: 118.4 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007642/0.996, allocations: 1.063 MB / 0.5508 GB, free: 117.7 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007893/0.9968, allocations: 120.7 kB / 0.551 GB, free: 117.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006012/0.9974, allocations: 392 kB / 0.5513 GB, free: 117.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.403e-06/0.9975, allocations: 3.625 kB / 0.5513 GB, free: 117.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04913/1.047, allocations: 20.39 MB / 0.5712 GB, free: 116.8 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/1.047, allocations: 196 kB / 0.5714 GB, free: 116.6 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.672/3.719, allocations: 0 / 0.5714 GB, free: 116.6 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)