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.0008454/0.0008454, allocations: 87.88 kB / 16.31 MB, free: 6.453 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.0008378/0.0008378, allocations: 178.3 kB / 17.21 MB, free: 6.328 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.416/1.416, allocations: 223.2 MB / 241.2 MB, free: 5.445 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002494/0.0002494, allocations: 5.312 kB / 300.9 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1045, allocations: 50.43 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.00646/0.111, allocations: 5.581 MB / 356.9 MB, free: 6.008 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003463/0.1145, allocations: 2.077 MB / 359 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006398/0.1152, allocations: 16 kB / 359 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006745/0.1159, allocations: 306.5 kB / 359.3 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000959/0.1169, allocations: 409.4 kB / 359.7 MB, free: 3.203 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007645/0.1176, allocations: 283.5 kB / 360 MB, free: 2.926 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001434/0.1191, allocations: 1.362 MB / 361.4 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006259/0.1197, allocations: 382 kB / 361.7 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006604/0.1204, allocations: 450.2 kB / 362.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006369/0.121, allocations: 0.5367 MB / 362.7 MB, free: 192 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001206/0.1212, allocations: 64 kB / 362.8 MB, free: 128 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002199/0.1214, allocations: 87.98 kB / 362.9 MB, free: 40 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002186/0.1216, allocations: 211.2 kB / 363.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.1219, allocations: 253.1 kB / 363.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001264/0.1231, allocations: 1.511 MB / 364.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.1232, allocations: 4 kB / 364.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.1232, allocations: 0 / 364.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.696e-05/0.1232, allocations: 0 / 364.8 MB, free: 14.05 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.002581/0.1258, allocations: 1.398 MB / 366.2 MB, free: 12.61 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.1258, allocations: 8.031 kB / 366.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001811/0.126, allocations: 148 kB / 366.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001806/0.1262, allocations: 130.4 kB / 366.5 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.1273, allocations: 0.6803 MB / 367.2 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.1274, allocations: 82 kB / 367.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.1275, allocations: 95.98 kB / 367.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001908/0.1295, allocations: 1.036 MB / 368.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.1295, allocations: 3.938 kB / 368.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.334e-05/0.1296, allocations: 40 kB / 368.4 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.19e-05/0.1296, allocations: 28 kB / 368.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001932/0.1316, allocations: 0.9343 MB / 369.4 MB, free: 9.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005323/0.1369, allocations: 3.684 MB / 373.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002982/0.1399, allocations: 1.091 MB / 374.2 MB, free: 4.395 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007974/0.1407, allocations: 393.8 kB / 374.6 MB, free: 4.004 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.034e-05/0.1408, allocations: 12.17 kB / 374.6 MB, free: 3.992 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.1408, allocations: 42.75 kB / 374.6 MB, free: 3.941 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.775e-06/0.1409, allocations: 0 / 374.6 MB, free: 3.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.004883/0.1457, allocations: 1.98 MB / 376.6 MB, free: 1.957 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/0.1458, allocations: 93 kB / 376.7 MB, free: 1.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001278/0.1471, allocations: 0.9664 MB / 377.6 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.945e-05/0.1472, allocations: 33.7 kB / 377.7 MB, free: 0.832 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003668/0.1476, allocations: 0.5337 MB / 378.2 MB, free: 296 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.1477, allocations: 220.8 kB / 378.4 MB, free: 72 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.522e-05/0.1478, allocations: 20 kB / 378.4 MB, free: 52 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001366/0.1479, allocations: 341.9 kB / 378.8 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008843/0.1488, allocations: 381.8 kB / 379.2 MB, free: 15.34 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009718/0.1498, allocations: 0.5614 MB / 379.7 MB, free: 14.7 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009111/0.1507, allocations: 417.9 kB / 380.1 MB, free: 14.3 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.1507, allocations: 4 kB / 380.1 MB, free: 14.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002278/0.153, allocations: 1.091 MB / 381.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.698e-05/0.1531, allocations: 8 kB / 381.2 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.1531, allocations: 4 kB / 381.2 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.1531, allocations: 12 kB / 381.2 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001158/0.1543, allocations: 323.6 kB / 381.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.861e-05/0.1543, allocations: 11.94 kB / 381.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007713/0.1551, allocations: 91.92 kB / 381.7 MB, free: 12.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.523e-05/0.1552, allocations: 35.98 kB / 381.7 MB, free: 12.72 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.0004479/0.1556, allocations: 281.6 kB / 382 MB, free: 12.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.1558, allocations: 106.7 kB / 382.1 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009588/0.1567, allocations: 426.2 kB / 382.5 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/0.1568, allocations: 8 kB / 382.5 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.1568, allocations: 4 kB / 382.5 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.1568, allocations: 3.984 kB / 382.5 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003652/0.1605, allocations: 2.337 MB / 384.8 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.208e-06/0.1605, allocations: 8 kB / 384.8 MB, free: 9.402 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008332/0.1613, allocations: 235.8 kB / 385.1 MB, free: 9.172 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.538e-05/0.1613, allocations: 12 kB / 385.1 MB, free: 9.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.456e-05/0.1614, allocations: 23.98 kB / 385.1 MB, free: 9.137 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.129e-05/0.1614, allocations: 11.94 kB / 385.1 MB, free: 9.125 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/0.1614, allocations: 12 kB / 385.1 MB, free: 9.113 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.1631, allocations: 1.068 MB / 386.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002933/0.1634, allocations: 187.9 kB / 386.4 MB, free: 7.734 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/0.1635, allocations: 16 kB / 386.4 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006212/0.1641, allocations: 67.94 kB / 386.5 MB, free: 7.652 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.1643, allocations: 63.83 kB / 386.5 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.347e-05/0.1643, allocations: 39.88 kB / 386.6 MB, free: 7.551 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001035/0.1654, allocations: 0.6708 MB / 387.2 MB, free: 6.883 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1654, allocations: 0 / 387.2 MB, free: 6.883 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009499/0.1663, allocations: 211.9 kB / 387.5 MB, free: 6.676 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.002769/0.1691, allocations: 1.88 MB / 389.3 MB, free: 4.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.1709, allocations: 0.8197 MB / 390.2 MB, free: 4 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.171, allocations: 4 kB / 390.2 MB, free: 3.996 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007914/0.1718, allocations: 381.7 kB / 390.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00116/0.1729, allocations: 195.3 kB / 390.7 MB, free: 3.434 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/0.1836, allocations: 6.127 MB / 396.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005948/0.1842, allocations: 1.014 MB / 397.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006204/0.1849, allocations: 123.2 kB / 398 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000511/0.1854, allocations: 379.3 kB / 398.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of SimCode: time 8.01e-07/0.1854, allocations: 4 kB / 398.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03286/0.2183, allocations: 18.22 MB / 416.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00023/0.2185, allocations: 255.6 kB / 416.8 MB, free: 9.141 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.294/2.512, allocations: 4.062 kB / 416.8 MB, free: 9.137 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