Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 175.2 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.396/1.396, allocations: 221.3 MB / 235.5 MB, free: 2.973 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008914/0.0008913, allocations: 87.73 kB / 286.5 MB, free: 256 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.607e-05/2.617e-05, allocations: 4 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 50.4 MB / 394.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3465/0.454, allocations: 89.47 MB / 483.8 MB, free: 14.02 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.4543, allocations: 85.55 kB / 483.9 MB, free: 13.94 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04375/0.498, allocations: 16.29 MB / 0.4885 GB, free: 13.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4981, allocations: 3.938 kB / 0.4885 GB, free: 13.61 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.177e-05/0.4981, allocations: 19.98 kB / 0.4885 GB, free: 13.59 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001748/0.4999, allocations: 0.9696 MB / 0.4894 GB, free: 12.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.4999, allocations: 12.03 kB / 0.4894 GB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001302/0.5001, allocations: 102.5 kB / 0.4895 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.5002, allocations: 94.88 kB / 0.4896 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008791/0.5011, allocations: 0.5387 MB / 0.4902 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001187/0.5012, allocations: 53.98 kB / 0.4902 GB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.776e-05/0.5013, allocations: 63.95 kB / 0.4903 GB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.5024, allocations: 0.5974 MB / 0.4909 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/0.5025, allocations: 15.92 kB / 0.4909 GB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.572e-05/0.5025, allocations: 20 kB / 0.4909 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.526e-05/0.5026, allocations: 12 kB / 0.4909 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008977/0.5035, allocations: 0.4933 MB / 0.4914 GB, free: 10.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004092/0.5076, allocations: 2.659 MB / 0.494 GB, free: 7.703 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007396/0.5083, allocations: 460.5 kB / 0.4944 GB, free: 7.246 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005079/0.5089, allocations: 269.3 kB / 0.4947 GB, free: 6.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.015e-05/0.5089, allocations: 8.422 kB / 0.4947 GB, free: 6.973 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.962e-05/0.509, allocations: 39 kB / 0.4947 GB, free: 6.926 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.494e-06/0.509, allocations: 3.938 kB / 0.4947 GB, free: 6.922 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.003801/0.5128, allocations: 1.368 MB / 0.4961 GB, free: 5.551 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.107e-05/0.5128, allocations: 55.97 kB / 0.4961 GB, free: 5.484 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.5141, allocations: 0.8396 MB / 0.4969 GB, free: 4.633 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.762e-05/0.5142, allocations: 37.7 kB / 0.497 GB, free: 4.59 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002905/0.5145, allocations: 404 kB / 0.4974 GB, free: 4.191 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001778/0.5146, allocations: 224.8 kB / 0.4976 GB, free: 3.969 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.716e-05/0.5147, allocations: 12 kB / 0.4976 GB, free: 3.957 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.5148, allocations: 333.9 kB / 0.4979 GB, free: 3.625 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003842/0.5152, allocations: 209.5 kB / 0.4981 GB, free: 3.422 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004406/0.5157, allocations: 305.1 kB / 0.4984 GB, free: 3.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004421/0.5161, allocations: 242 kB / 0.4986 GB, free: 2.855 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.5161, allocations: 4 kB / 0.4986 GB, free: 2.852 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00118/0.5173, allocations: 0.6634 MB / 0.4993 GB, free: 2.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.5174, allocations: 8 kB / 0.4993 GB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.5174, allocations: 0 / 0.4993 GB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.5174, allocations: 8 kB / 0.4993 GB, free: 2.164 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000879/0.5183, allocations: 195.7 kB / 0.4995 GB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.447e-05/0.5183, allocations: 12 kB / 0.4995 GB, free: 1.961 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006253/0.5189, allocations: 59.95 kB / 0.4995 GB, free: 1.902 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.545e-05/0.519, allocations: 27.98 kB / 0.4996 GB, free: 1.875 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 88 * 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.0001399/0.5192, allocations: 144.8 kB / 0.4997 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001379/0.5193, allocations: 82.97 kB / 0.4998 GB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/0.5204, allocations: 0.5737 MB / 0.5003 GB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.732e-06/0.5204, allocations: 8 kB / 0.5004 GB, free: 1.047 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.5204, allocations: 3.984 kB / 0.5004 GB, free: 1.043 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.5204, allocations: 3.984 kB / 0.5004 GB, free: 1.039 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002914/0.5234, allocations: 1.874 MB / 0.5022 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.5234, allocations: 7.938 kB / 0.5022 GB, free: 15.03 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006371/0.524, allocations: 152.1 kB / 0.5023 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.31e-05/0.5241, allocations: 4 kB / 0.5023 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.964e-05/0.5241, allocations: 16 kB / 0.5024 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.055e-06/0.5241, allocations: 7.938 kB / 0.5024 GB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.5241, allocations: 7.984 kB / 0.5024 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.5252, allocations: 0.8253 MB / 0.5032 GB, free: 13.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003743/0.5256, allocations: 240 kB / 0.5034 GB, free: 13.65 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.348e-05/0.5257, allocations: 12 kB / 0.5034 GB, free: 13.64 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005175/0.5262, allocations: 59.95 kB / 0.5035 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.5263, allocations: 52.39 kB / 0.5035 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.102e-05/0.5264, allocations: 20 kB / 0.5035 GB, free: 13.51 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009355/0.5273, allocations: 0.6671 MB / 0.5042 GB, free: 12.85 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5273, allocations: 4 kB / 0.5042 GB, free: 12.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006346/0.528, allocations: 184 kB / 0.5044 GB, free: 12.66 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 66 * 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.002433/0.5304, allocations: 2.368 MB / 0.5067 GB, free: 10.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009874/0.5314, allocations: 0.5086 MB / 0.5072 GB, free: 9.789 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.431e-06/0.5314, allocations: 4 kB / 0.5072 GB, free: 9.785 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000433/0.5319, allocations: 272.2 kB / 0.5075 GB, free: 9.523 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007122/0.5326, allocations: 132.4 kB / 0.5076 GB, free: 9.398 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002823/0.5354, allocations: 1.347 MB / 0.5089 GB, free: 7.973 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006099/0.5361, allocations: 0.9827 MB / 0.5099 GB, free: 6.961 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000475/0.5366, allocations: 117 kB / 0.51 GB, free: 6.844 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004653/0.537, allocations: 291.3 kB / 0.5102 GB, free: 6.559 MB / 394.7 MB Notification: Performance of SimCode: time 5.01e-07/0.537, allocations: 0 / 0.5102 GB, free: 6.559 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03632/0.5734, allocations: 15.31 MB / 0.5252 GB, free: 7.414 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/0.5736, allocations: 218.8 kB / 0.5254 GB, free: 7.195 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.462/3.036, allocations: 0 / 0.5254 GB, free: 7.195 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_fmu --startTime=-4 --stopTime=4 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat does not exist to compare? outputFormat=mat