Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.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 4.0.0+maint.om/package.mo", uses=false) 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) 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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 93.52 kB / 16.3 MB, free: 5.996 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.001095/0.001094, allocations: 184.4 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002894/0.0002896, allocations: 5.5 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1203, allocations: 50.43 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.005952/0.1263, allocations: 5.18 MB / 356.4 MB, free: 6.441 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004047/0.1304, allocations: 2.124 MB / 358.5 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006714/0.1311, allocations: 19.94 kB / 358.6 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007394/0.1318, allocations: 294.6 kB / 358.9 MB, free: 4 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001131/0.133, allocations: 0.4907 MB / 359.3 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008336/0.1338, allocations: 275.5 kB / 359.6 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001243/0.1351, allocations: 0.9429 MB / 360.6 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005652/0.1356, allocations: 378.1 kB / 360.9 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005195/0.1362, allocations: 458.3 kB / 361.4 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005737/0.1368, allocations: 0.5329 MB / 361.9 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001025/0.1369, allocations: 64 kB / 362 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002003/0.1371, allocations: 76 kB / 362 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002631/0.1373, allocations: 211.2 kB / 362.2 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002182/0.1376, allocations: 253.1 kB / 362.5 MB, free: 336 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001274/0.1389, allocations: 1.515 MB / 364 MB, free: 14.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1389, allocations: 0 / 364 MB, free: 14.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1389, allocations: 4 kB / 364 MB, free: 14.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.584e-05/0.1389, allocations: 0 / 364 MB, free: 14.8 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002827/0.1417, allocations: 1.387 MB / 365.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.1418, allocations: 8.031 kB / 365.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001983/0.142, allocations: 148 kB / 365.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001934/0.1422, allocations: 130.5 kB / 365.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.1433, allocations: 0.6842 MB / 366.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001237/0.1435, allocations: 77.98 kB / 366.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000138/0.1436, allocations: 95.94 kB / 366.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001979/0.1456, allocations: 1.033 MB / 367.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.055e-05/0.1457, allocations: 4 kB / 367.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.376e-05/0.1458, allocations: 36 kB / 367.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.067e-05/0.1458, allocations: 20 kB / 367.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002053/0.1478, allocations: 0.946 MB / 368.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005488/0.1533, allocations: 3.684 MB / 372.3 MB, free: 6.266 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003134/0.1565, allocations: 1.095 MB / 373.3 MB, free: 5.152 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.147e-05/0.1566, allocations: 8.188 kB / 373.4 MB, free: 5.145 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.1566, allocations: 46.73 kB / 373.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.745e-06/0.1566, allocations: 0 / 373.4 MB, free: 5.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.004908/0.1615, allocations: 1.97 MB / 375.4 MB, free: 3.113 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.1616, allocations: 89.06 kB / 375.5 MB, free: 3.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001225/0.1628, allocations: 0.9702 MB / 376.4 MB, free: 2.027 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.15e-05/0.1629, allocations: 37.7 kB / 376.5 MB, free: 1.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003842/0.1633, allocations: 0.5298 MB / 377 MB, free: 1.445 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.1635, allocations: 228.8 kB / 377.2 MB, free: 1.219 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.366e-05/0.1635, allocations: 12 kB / 377.2 MB, free: 1.207 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.1636, allocations: 337.9 kB / 377.6 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009443/0.1646, allocations: 381.8 kB / 377.9 MB, free: 0.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/0.1657, allocations: 0.5575 MB / 378.5 MB, free: 15.87 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.1667, allocations: 414 kB / 378.9 MB, free: 15.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.1667, allocations: 7.938 kB / 378.9 MB, free: 15.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002378/0.1691, allocations: 1.095 MB / 380 MB, free: 14.36 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.449e-05/0.1691, allocations: 8 kB / 380 MB, free: 14.35 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.1692, allocations: 8 kB / 380 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.1692, allocations: 8 kB / 380 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.1705, allocations: 323.5 kB / 380.3 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.66e-05/0.1705, allocations: 12 kB / 380.4 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008042/0.1713, allocations: 87.92 kB / 380.4 MB, free: 13.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.298e-05/0.1714, allocations: 39.98 kB / 380.5 MB, free: 13.88 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004333/0.1718, allocations: 281.6 kB / 380.8 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001518/0.172, allocations: 102.7 kB / 380.9 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009679/0.173, allocations: 429 kB / 381.3 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.173, allocations: 12 kB / 381.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.725e-06/0.173, allocations: 0 / 381.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.173, allocations: 3.938 kB / 381.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003644/0.1767, allocations: 2.345 MB / 383.6 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.1767, allocations: 8 kB / 383.6 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008851/0.1776, allocations: 227.8 kB / 383.9 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-05/0.1776, allocations: 12 kB / 383.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.18e-05/0.1776, allocations: 23.98 kB / 383.9 MB, free: 10.3 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.849e-06/0.1777, allocations: 11.94 kB / 383.9 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.948e-06/0.1777, allocations: 11.94 kB / 383.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/0.1795, allocations: 1.4 MB / 385.3 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002263/0.1798, allocations: 191.9 kB / 385.5 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.1799, allocations: 16 kB / 385.5 MB, free: 8.375 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006187/0.1805, allocations: 63.95 kB / 385.6 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.1806, allocations: 59.83 kB / 385.6 MB, free: 8.254 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.487e-05/0.1807, allocations: 31.98 kB / 385.7 MB, free: 8.223 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008735/0.1816, allocations: 0.6747 MB / 386.3 MB, free: 7.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1816, allocations: 4 kB / 386.4 MB, free: 7.547 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008017/0.1824, allocations: 208 kB / 386.6 MB, free: 7.344 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003479/0.1859, allocations: 4.132 MB / 390.7 MB, free: 3.129 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00186/0.1877, allocations: 0.8196 MB / 391.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.1878, allocations: 4 kB / 391.5 MB, free: 2.305 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007835/0.1885, allocations: 385.8 kB / 391.9 MB, free: 1.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008693/0.1894, allocations: 193.8 kB / 392.1 MB, free: 1.746 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0116/0.201, allocations: 9.547 MB / 401.6 MB, free: 7.805 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006618/0.2017, allocations: 1.042 MB / 402.7 MB, free: 6.734 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006166/0.2024, allocations: 123.2 kB / 402.8 MB, free: 6.609 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004849/0.2029, allocations: 387.3 kB / 403.2 MB, free: 6.23 MB / 334.1 MB Notification: Performance of SimCode: time 7.32e-07/0.2029, allocations: 0 / 403.2 MB, free: 6.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03649/0.2394, allocations: 18.17 MB / 421.3 MB, free: 4.344 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002044/0.2396, allocations: 251 kB / 421.6 MB, free: 4.016 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.177/2.416, allocations: 0 / 421.6 MB, free: 4.016 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat