Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_3_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.001206/0.001206, allocations: 101.6 kB / 16.95 MB, free: 6.457 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.001445/0.001445, allocations: 183 kB / 17.84 MB, free: 6.008 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.711/1.711, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.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.0004218/0.0004218, allocations: 8 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.124, allocations: 47.58 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.006821/0.1309, allocations: 5.521 MB / 334 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004106/0.135, allocations: 2.035 MB / 336 MB, free: 12.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001133/0.1362, allocations: 19.94 kB / 336 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000718/0.1369, allocations: 302.5 kB / 336.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001024/0.138, allocations: 405.5 kB / 336.7 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008226/0.1388, allocations: 267.6 kB / 337 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001555/0.1404, allocations: 1.362 MB / 338.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006075/0.141, allocations: 382 kB / 338.7 MB, free: 9.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006574/0.1417, allocations: 450.2 kB / 339.2 MB, free: 9.219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006427/0.1423, allocations: 0.5368 MB / 339.7 MB, free: 8.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001157/0.1424, allocations: 60 kB / 339.7 MB, free: 8.621 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002253/0.1427, allocations: 87.98 kB / 339.8 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002349/0.1429, allocations: 211.1 kB / 340 MB, free: 8.328 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002455/0.1432, allocations: 265.1 kB / 340.3 MB, free: 8.062 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001446/0.1446, allocations: 1.511 MB / 341.8 MB, free: 6.547 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.1446, allocations: 0 / 341.8 MB, free: 6.547 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1447, allocations: 0 / 341.8 MB, free: 6.547 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.945e-05/0.1447, allocations: 0 / 341.8 MB, free: 6.547 MB / 286.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.002674/0.1474, allocations: 1.391 MB / 343.2 MB, free: 5.105 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1474, allocations: 8.031 kB / 343.2 MB, free: 5.098 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000191/0.1476, allocations: 151.9 kB / 343.4 MB, free: 4.941 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001872/0.1478, allocations: 130.5 kB / 343.5 MB, free: 4.812 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00109/0.1489, allocations: 0.6804 MB / 344.2 MB, free: 4.09 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.149, allocations: 74 kB / 344.2 MB, free: 4.016 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001385/0.1492, allocations: 95.91 kB / 344.3 MB, free: 3.922 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002097/0.1513, allocations: 1.04 MB / 345.4 MB, free: 2.875 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.828e-05/0.1513, allocations: 4 kB / 345.4 MB, free: 2.871 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.529e-05/0.1514, allocations: 39.98 kB / 345.4 MB, free: 2.832 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.237e-05/0.1515, allocations: 24 kB / 345.4 MB, free: 2.809 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001933/0.1534, allocations: 0.9537 MB / 346.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005366/0.1588, allocations: 3.672 MB / 350.1 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003073/0.1619, allocations: 1.091 MB / 351.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008069/0.1627, allocations: 401.8 kB / 351.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.564e-05/0.1628, allocations: 12.19 kB / 351.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.1628, allocations: 39.34 kB / 351.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 3.888e-06/0.1628, allocations: 3.938 kB / 351.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.004766/0.1676, allocations: 1.965 MB / 353.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.059e-05/0.1677, allocations: 85.11 kB / 353.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001187/0.1689, allocations: 0.974 MB / 354.6 MB, free: 9.363 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.795e-05/0.1689, allocations: 45.7 kB / 354.7 MB, free: 9.312 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003789/0.1693, allocations: 0.5221 MB / 355.2 MB, free: 8.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.1695, allocations: 236.6 kB / 355.4 MB, free: 8.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.515e-05/0.1695, allocations: 16 kB / 355.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1697, allocations: 337.9 kB / 355.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008516/0.1705, allocations: 381.8 kB / 356.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001048/0.1716, allocations: 0.5612 MB / 356.7 MB, free: 7.184 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009439/0.1726, allocations: 417.9 kB / 357.1 MB, free: 6.777 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.1726, allocations: 4 kB / 357.1 MB, free: 6.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002149/0.1747, allocations: 1.091 MB / 358.2 MB, free: 5.672 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.1748, allocations: 8 kB / 358.2 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.1748, allocations: 4 kB / 358.2 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.1748, allocations: 15.95 kB / 358.2 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.176, allocations: 323.6 kB / 358.5 MB, free: 5.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.2e-05/0.176, allocations: 15.94 kB / 358.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007065/0.1767, allocations: 91.92 kB / 358.7 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.667e-05/0.1768, allocations: 31.98 kB / 358.7 MB, free: 5.191 MB / 302.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.0004161/0.1772, allocations: 293.5 kB / 359 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001449/0.1774, allocations: 98.77 kB / 359.1 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009666/0.1784, allocations: 430.2 kB / 359.5 MB, free: 4.367 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.1784, allocations: 12 kB / 359.5 MB, free: 4.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/0.1784, allocations: 3.953 kB / 359.5 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.1784, allocations: 3.984 kB / 359.5 MB, free: 4.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003795/0.1822, allocations: 2.34 MB / 361.8 MB, free: 1.867 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.328e-06/0.1822, allocations: 8 kB / 361.9 MB, free: 1.859 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008421/0.1831, allocations: 228.1 kB / 362.1 MB, free: 1.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.362e-05/0.1831, allocations: 12 kB / 362.1 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.292e-05/0.1832, allocations: 28 kB / 362.1 MB, free: 1.598 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.117e-05/0.1832, allocations: 15.92 kB / 362.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.577e-06/0.1832, allocations: 11.94 kB / 362.1 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001699/0.1849, allocations: 1.06 MB / 363.2 MB, free: 416 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002153/0.1851, allocations: 191.8 kB / 363.4 MB, free: 204 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.1853, allocations: 20 kB / 363.4 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005723/0.1858, allocations: 63.95 kB / 363.5 MB, free: 120 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.186, allocations: 67.77 kB / 363.5 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.585e-05/0.186, allocations: 27.98 kB / 363.6 MB, free: 24 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001009/0.187, allocations: 0.6748 MB / 364.2 MB, free: 15.35 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1871, allocations: 0 / 364.2 MB, free: 15.35 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00077/0.1878, allocations: 212 kB / 364.4 MB, free: 15.14 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.002696/0.1905, allocations: 1.88 MB / 366.3 MB, free: 13.17 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001734/0.1923, allocations: 0.8194 MB / 367.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1923, allocations: 0 / 367.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007485/0.1931, allocations: 385.8 kB / 367.5 MB, free: 11.97 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.1941, allocations: 192.3 kB / 367.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/0.2059, allocations: 6.111 MB / 373.8 MB, free: 5.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007316/0.2067, allocations: 1.022 MB / 374.8 MB, free: 4.273 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006624/0.2074, allocations: 127.2 kB / 375 MB, free: 4.145 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005676/0.2079, allocations: 383.3 kB / 375.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2079, allocations: 0 / 375.3 MB, free: 3.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2372/0.4451, allocations: 18.2 MB / 393.5 MB, free: 46.86 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002461/0.4455, allocations: 263 kB / 393.8 MB, free: 46.51 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.52/2.966, allocations: 0 / 393.8 MB, free: 46.51 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat