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.002207/0.002207, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.948/1.948, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001177/0.001176, allocations: 93.92 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006321/0.0006321, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3431/0.3438, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1463/0.4902, allocations: 88.95 MB / 463.6 MB, free: 7.773 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003329/0.4905, allocations: 87.95 kB / 463.7 MB, free: 7.688 MB / 346.7 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.09634/0.5869, allocations: 22.11 MB / 485.8 MB, free: 1.496 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.587, allocations: 0 / 485.8 MB, free: 1.496 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.562e-05/0.5871, allocations: 20 kB / 485.8 MB, free: 1.477 MB / 362.7 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.004872/0.592, allocations: 1.356 MB / 487.2 MB, free: 68 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.542e-05/0.592, allocations: 16.02 kB / 487.2 MB, free: 52 kB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005766/0.5926, allocations: 144.7 kB / 487.3 MB, free: 15.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004067/0.593, allocations: 134.4 kB / 487.5 MB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/0.5949, allocations: 0.6492 MB / 488.1 MB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002077/0.5951, allocations: 78 kB / 488.2 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003149/0.5954, allocations: 99.89 kB / 488.3 MB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003678/0.5991, allocations: 1.04 MB / 489.3 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.256e-05/0.5992, allocations: 3.938 kB / 489.3 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001879/0.5994, allocations: 40 kB / 489.4 MB, free: 13.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-05/0.5995, allocations: 27.98 kB / 489.4 MB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004317/0.6038, allocations: 0.9771 MB / 490.4 MB, free: 12.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01088/0.6147, allocations: 3.868 MB / 494.2 MB, free: 8.742 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004703/0.6195, allocations: 0.9518 MB / 495.2 MB, free: 7.773 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001427/0.6197, allocations: 16.55 kB / 495.2 MB, free: 7.758 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.6198, allocations: 43.06 kB / 495.2 MB, free: 7.707 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 3.917e-06/0.6198, allocations: 0 / 495.2 MB, free: 7.707 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.0105/0.6303, allocations: 2.212 MB / 497.5 MB, free: 5.488 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.772e-05/0.6304, allocations: 89.55 kB / 497.5 MB, free: 5.383 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002106/0.6325, allocations: 0.8244 MB / 498.4 MB, free: 4.551 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002154/0.6328, allocations: 41.7 kB / 498.4 MB, free: 4.504 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005436/0.6334, allocations: 0.5054 MB / 498.9 MB, free: 3.992 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004406/0.6338, allocations: 283.9 kB / 499.2 MB, free: 3.711 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.6339, allocations: 16 kB / 499.2 MB, free: 3.695 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002186/0.6342, allocations: 350.8 kB / 499.5 MB, free: 3.344 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002042/0.6362, allocations: 417.8 kB / 500 MB, free: 2.934 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002239/0.6385, allocations: 0.5681 MB / 0.4888 GB, free: 2.312 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00216/0.6407, allocations: 457.7 kB / 0.4892 GB, free: 1.863 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.6408, allocations: 0 / 0.4892 GB, free: 1.863 MB / 378.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.004604/0.6454, allocations: 1.088 MB / 0.4903 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.355e-05/0.6455, allocations: 4 kB / 0.4903 GB, free: 0.7617 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.6455, allocations: 4 kB / 0.4903 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.71e-05/0.6455, allocations: 16 kB / 0.4903 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003492/0.649, allocations: 331.6 kB / 0.4906 GB, free: 428 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.547e-05/0.6491, allocations: 15.94 kB / 0.4906 GB, free: 412 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001962/0.6511, allocations: 123.8 kB / 0.4908 GB, free: 288 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001869/0.6513, allocations: 39.98 kB / 0.4908 GB, free: 248 kB / 378.7 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 117 * 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.3174/0.9688, allocations: 281.2 kB / 0.4911 GB, free: 99.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000387/0.9692, allocations: 95.44 kB / 0.4912 GB, free: 99.98 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00224/0.9714, allocations: 490.2 kB / 0.4916 GB, free: 99.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.211e-05/0.9715, allocations: 11.91 kB / 0.4916 GB, free: 99.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.003e-05/0.9715, allocations: 0.5312 kB / 0.4916 GB, free: 99.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.881e-05/0.9715, allocations: 6.609 kB / 0.4916 GB, free: 99.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008405/0.9799, allocations: 2.931 MB / 0.4945 GB, free: 99.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-05/0.98, allocations: 10.66 kB / 0.4945 GB, free: 99.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001912/0.9819, allocations: 267.4 kB / 0.4948 GB, free: 99.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.81e-05/0.982, allocations: 15.66 kB / 0.4948 GB, free: 99.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.154e-05/0.9821, allocations: 28.86 kB / 0.4948 GB, free: 99.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.301e-05/0.9821, allocations: 20.75 kB / 0.4948 GB, free: 99.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.588e-05/0.9821, allocations: 15.66 kB / 0.4948 GB, free: 99.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003483/0.9856, allocations: 1.742 MB / 0.4965 GB, free: 97.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004349/0.9861, allocations: 207.6 kB / 0.4967 GB, free: 97.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002129/0.9863, allocations: 27.97 kB / 0.4968 GB, free: 97.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.9876, allocations: 79.11 kB / 0.4968 GB, free: 97.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/0.9879, allocations: 93.11 kB / 0.4969 GB, free: 97.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.704e-05/0.988, allocations: 37.3 kB / 0.497 GB, free: 97.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00139/0.9894, allocations: 0.6355 MB / 0.4976 GB, free: 97.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.9894, allocations: 0 / 0.4976 GB, free: 97.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001493/0.9909, allocations: 231.1 kB / 0.4978 GB, free: 97.74 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.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 simulation (82): * Single equations (assignments): 82 * 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.005267/0.9962, allocations: 5.557 MB / 0.5032 GB, free: 92.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003765/1, allocations: 0.8933 MB / 0.5041 GB, free: 92.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.956e-05/1, allocations: 1.125 kB / 0.5041 GB, free: 92.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001838/1.002, allocations: 474.8 kB / 0.5046 GB, free: 92.86 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001972/1.004, allocations: 191.9 kB / 0.5048 GB, free: 92.85 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01766/1.022, allocations: 8.851 MB / 0.5134 GB, free: 87.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006424/1.022, allocations: 1.049 MB / 0.5144 GB, free: 86.55 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/1.023, allocations: 399.2 kB / 0.5148 GB, free: 86.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.242e-06/1.023, allocations: 0 / 0.5148 GB, free: 86.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.707/3.73, allocations: 18.06 MB / 0.5324 GB, free: 78.56 MB / 378.7 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