Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002235/0.002235, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.083/2.083, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00107/0.00107, allocations: 93.62 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.856e-05/2.854e-05, allocations: 7.938 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3291, allocations: 47.57 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1601/0.4892, allocations: 88.2 MB / 450.6 MB, free: 13.99 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004531/0.4897, allocations: 83.95 kB / 450.7 MB, free: 13.91 MB / 347.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Magnetic/FluxTubes.mo:1363:11-1363:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.1256/0.6153, allocations: 21.9 MB / 472.6 MB, free: 8.027 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.6154, allocations: 0 / 472.6 MB, free: 8.027 MB / 363.1 MB Notification: Performance of Transformations before backend: time 0.0001065/0.6155, allocations: 20 kB / 472.6 MB, free: 8.008 MB / 363.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.005144/0.6207, allocations: 1.228 MB / 473.9 MB, free: 6.734 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.274e-05/0.6208, allocations: 8.031 kB / 473.9 MB, free: 6.727 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005768/0.6214, allocations: 131.1 kB / 474 MB, free: 6.598 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002355/0.6237, allocations: 0.6569 MB / 474.7 MB, free: 5.898 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002393/0.624, allocations: 47.31 kB / 474.7 MB, free: 5.852 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003041/0.6243, allocations: 52 kB / 474.8 MB, free: 5.801 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003216/0.6276, allocations: 0.7303 MB / 475.5 MB, free: 5.07 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003197/0.6308, allocations: 0.799 MB / 476.3 MB, free: 4.262 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.926e-05/0.6309, allocations: 7.906 kB / 476.3 MB, free: 4.254 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001624/0.6311, allocations: 0 / 476.3 MB, free: 4.254 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.433e-05/0.6311, allocations: 24 kB / 476.3 MB, free: 4.23 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01246/0.6436, allocations: 3.689 MB / 480 MB, free: 364 kB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004363/0.648, allocations: 0.8107 MB / 480.8 MB, free: 15.53 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00132/0.6494, allocations: 346.8 kB / 481.2 MB, free: 15.18 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.222e-05/0.6495, allocations: 13.59 kB / 481.2 MB, free: 15.17 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.116e-05/0.6496, allocations: 39.12 kB / 481.2 MB, free: 15.12 MB / 379.1 MB Notification: Performance of pre-optimization done (n=68): time 8.125e-06/0.6496, allocations: 0 / 481.2 MB, free: 15.12 MB / 379.1 MB Notification: Performance of matching and sorting (n=86): time 0.006254/0.6559, allocations: 1.406 MB / 482.6 MB, free: 13.71 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.062e-05/0.656, allocations: 89.48 kB / 482.7 MB, free: 13.61 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002016/0.6581, allocations: 0.6951 MB / 483.4 MB, free: 12.9 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001613/0.6583, allocations: 25.7 kB / 483.4 MB, free: 12.87 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000657/0.6589, allocations: 0.5286 MB / 484 MB, free: 12.34 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000445/0.6594, allocations: 275.9 kB / 484.2 MB, free: 12.06 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.6595, allocations: 0 / 484.2 MB, free: 12.06 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0002259/0.6598, allocations: 350.8 kB / 484.6 MB, free: 11.71 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.6609, allocations: 286.5 kB / 484.8 MB, free: 11.43 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001305/0.6622, allocations: 442.4 kB / 485.3 MB, free: 10.95 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001213/0.6635, allocations: 321.7 kB / 485.6 MB, free: 10.63 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.6635, allocations: 4 kB / 485.6 MB, free: 10.62 MB / 379.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.003003/0.6665, allocations: 0.7795 MB / 486.4 MB, free: 9.836 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.175e-05/0.6666, allocations: 7.312 kB / 486.4 MB, free: 9.832 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/0.6666, allocations: 4 kB / 486.4 MB, free: 9.828 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.728e-05/0.6667, allocations: 16 kB / 486.4 MB, free: 9.812 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003517/0.6702, allocations: 347.5 kB / 486.7 MB, free: 9.473 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.048e-05/0.6703, allocations: 11.94 kB / 486.8 MB, free: 9.461 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00233/0.6726, allocations: 103.8 kB / 486.9 MB, free: 9.359 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002031/0.6728, allocations: 35.98 kB / 486.9 MB, free: 9.324 MB / 379.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 121 * 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.0003636/0.6732, allocations: 124.7 kB / 487 MB, free: 9.195 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00253/0.6758, allocations: 0.6239 MB / 487.6 MB, free: 8.566 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000389/0.6762, allocations: 94.88 kB / 487.7 MB, free: 8.473 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001279/0.6775, allocations: 329.9 kB / 488 MB, free: 8.137 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.791e-05/0.6775, allocations: 8 kB / 488.1 MB, free: 8.129 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.6776, allocations: 0 / 488.1 MB, free: 8.129 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.261e-05/0.6776, allocations: 7.969 kB / 488.1 MB, free: 8.121 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009519/0.6871, allocations: 2.664 MB / 490.7 MB, free: 5.273 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-05/0.6872, allocations: 8 kB / 490.7 MB, free: 5.266 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002573/0.6898, allocations: 272.1 kB / 491 MB, free: 5 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.631e-05/0.6899, allocations: 20 kB / 491 MB, free: 4.98 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001643/0.6901, allocations: 15.94 kB / 491 MB, free: 4.965 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.236e-05/0.6901, allocations: 27.88 kB / 491.1 MB, free: 4.938 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.751e-05/0.6902, allocations: 15.94 kB / 491.1 MB, free: 4.922 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003572/0.6938, allocations: 1.623 MB / 492.7 MB, free: 2.863 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006956/0.6945, allocations: 200 kB / 492.9 MB, free: 2.648 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002946/0.6949, allocations: 12 kB / 492.9 MB, free: 2.637 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00194/0.6968, allocations: 67.94 kB / 493 MB, free: 2.57 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003483/0.6972, allocations: 95.64 kB / 493.1 MB, free: 2.477 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001507/0.6974, allocations: 40 kB / 493.1 MB, free: 2.438 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.001633/0.699, allocations: 0.5226 MB / 493.6 MB, free: 1.918 MB / 379.1 MB Notification: Performance of sort global known variables: time 9.41e-07/0.6991, allocations: 0 / 493.6 MB, free: 1.918 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.002378/0.7015, allocations: 196 kB / 493.8 MB, free: 1.727 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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.006713/0.7082, allocations: 5.567 MB / 499.4 MB, free: 11.85 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002766/0.711, allocations: 0.6555 MB / 0.4883 GB, free: 11.19 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-05/0.7111, allocations: 8 kB / 0.4883 GB, free: 11.18 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.7127, allocations: 382.9 kB / 0.4887 GB, free: 10.81 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002421/0.7152, allocations: 167.3 kB / 0.4889 GB, free: 10.65 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008844/0.724, allocations: 1.676 MB / 0.4905 GB, free: 8.789 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001468/0.7256, allocations: 1.057 MB / 0.4915 GB, free: 7.699 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001673/0.7273, allocations: 399.3 kB / 0.4919 GB, free: 7.309 MB / 395.1 MB Notification: Performance of SimCode: time 2.335e-06/0.7274, allocations: 0 / 0.4919 GB, free: 7.309 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.207/3.935, allocations: 17.77 MB / 0.5093 GB, free: 109.8 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat