Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour") translateModel(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009967/0.009967, allocations: 101.1 kB / 15.73 MB, free: 6.039 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001728/0.001729, allocations: 190.4 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.514/1.514, allocations: 205.1 MB / 222.5 MB, free: 4.375 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 58.17 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09596/0.09714, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour): time 0.006007/0.1032, allocations: 4.514 MB / 377.7 MB, free: 12.77 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003134/0.1063, allocations: 1.75 MB / 379.4 MB, free: 11 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000387/0.1068, allocations: 12 kB / 379.4 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007325/0.1075, allocations: 418.3 kB / 379.9 MB, free: 10.58 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0008145/0.1084, allocations: 413.7 kB / 380.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005921/0.109, allocations: 299.5 kB / 380.6 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001014/0.11, allocations: 1.028 MB / 381.6 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004303/0.1104, allocations: 302.5 kB / 381.9 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004438/0.1109, allocations: 398.8 kB / 382.3 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005707/0.1115, allocations: 0.5022 MB / 382.8 MB, free: 7.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001151/0.1116, allocations: 99.98 kB / 382.9 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002174/0.1118, allocations: 127.9 kB / 383 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.112, allocations: 235.3 kB / 383.2 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000391/0.1124, allocations: 449.7 kB / 383.7 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001207/0.1137, allocations: 1.273 MB / 384.9 MB, free: 5.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.1137, allocations: 0 / 384.9 MB, free: 5.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1137, allocations: 0 / 384.9 MB, free: 5.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.569e-05/0.1137, allocations: 4 kB / 384.9 MB, free: 5.48 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002172/0.1159, allocations: 1.203 MB / 386.1 MB, free: 4.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.1159, allocations: 15.89 kB / 386.2 MB, free: 4.207 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001489/0.1161, allocations: 95.72 kB / 386.2 MB, free: 4.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009227/0.117, allocations: 0.559 MB / 386.8 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.484e-05/0.1171, allocations: 49.69 kB / 386.9 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.893e-05/0.1172, allocations: 60.12 kB / 386.9 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.1185, allocations: 0.6479 MB / 387.6 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.1185, allocations: 7.984 kB / 387.6 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.014e-05/0.1186, allocations: 24 kB / 387.6 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.1186, allocations: 16 kB / 387.6 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.1199, allocations: 0.5517 MB / 388.2 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003552/0.1235, allocations: 2.544 MB / 390.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009152/0.1244, allocations: 477.7 kB / 391.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007213/0.1251, allocations: 305.9 kB / 391.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.1252, allocations: 8.422 kB / 391.5 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.303e-05/0.1252, allocations: 39 kB / 391.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=48): time 1.733e-06/0.1252, allocations: 0 / 391.5 MB, free: 14.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.004525/0.1297, allocations: 1.481 MB / 393 MB, free: 13.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.1298, allocations: 59.97 kB / 393.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.1309, allocations: 0.9496 MB / 394 MB, free: 12.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/0.131, allocations: 37.7 kB / 394 MB, free: 12.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002868/0.1313, allocations: 408 kB / 394.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000156/0.1314, allocations: 201 kB / 394.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.1316, allocations: 118.6 kB / 394.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.1318, allocations: 334 kB / 395.1 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006349/0.1324, allocations: 245.9 kB / 395.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007005/0.1331, allocations: 343 kB / 395.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.1344, allocations: 0.5674 MB / 396.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1344, allocations: 0 / 396.2 MB, free: 9.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00158/0.136, allocations: 0.7306 MB / 396.9 MB, free: 9.066 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.076e-05/0.136, allocations: 7.938 kB / 397 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.136, allocations: 4 kB / 397 MB, free: 9.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.607e-05/0.1361, allocations: 4 kB / 397 MB, free: 9.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008043/0.1369, allocations: 175.7 kB / 397.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/0.1369, allocations: 8.062 kB / 397.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005803/0.1375, allocations: 43.95 kB / 397.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.042e-05/0.1376, allocations: 20 kB / 397.2 MB, free: 8.809 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMin.contact,actuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004182/0.138, allocations: 261.7 kB / 397.5 MB, free: 8.543 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.1381, allocations: 86.91 kB / 397.5 MB, free: 8.457 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/0.1396, allocations: 0.628 MB / 398.2 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.1396, allocations: 11.94 kB / 398.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1396, allocations: 0 / 398.2 MB, free: 7.805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.1397, allocations: 3.984 kB / 398.2 MB, free: 7.801 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002912/0.1426, allocations: 1.803 MB / 400 MB, free: 5.875 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.1426, allocations: 7.938 kB / 400 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005918/0.1432, allocations: 131.8 kB / 400.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.344e-06/0.1432, allocations: 7.938 kB / 400.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.735e-05/0.1433, allocations: 19.98 kB / 400.2 MB, free: 5.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.142e-06/0.1433, allocations: 4 kB / 400.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.1433, allocations: 4 kB / 400.2 MB, free: 5.703 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001352/0.1446, allocations: 0.7431 MB / 400.9 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000259/0.1449, allocations: 200 kB / 401.1 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.896e-05/0.145, allocations: 27.92 kB / 401.1 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004745/0.1455, allocations: 35.97 kB / 401.2 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.687e-05/0.1456, allocations: 36.33 kB / 401.2 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/0.1456, allocations: 27.92 kB / 401.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007764/0.1464, allocations: 0.6826 MB / 401.9 MB, free: 3.898 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1464, allocations: 4 kB / 401.9 MB, free: 3.895 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005665/0.147, allocations: 155.9 kB / 402.1 MB, free: 3.742 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008402/0.1479, allocations: 364.8 kB / 402.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001411/0.1493, allocations: 0.5812 MB / 403 MB, free: 2.797 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1493, allocations: 4.188 kB / 403 MB, free: 2.793 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006269/0.1499, allocations: 294.2 kB / 403.3 MB, free: 2.504 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007363/0.1507, allocations: 131.3 kB / 403.4 MB, free: 2.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002669/0.1534, allocations: 1.573 MB / 405 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005402/0.1539, allocations: 0.9669 MB / 406 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003982/0.1543, allocations: 101 kB / 406.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.1545, allocations: 55.42 kB / 406.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1545, allocations: 0 / 406.1 MB, free: 15.58 MB / 350.1 MB Notification: Performance of Templates: time 0.01432/0.1688, allocations: 7.78 MB / 413.9 MB, free: 7.789 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1)