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/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_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/Complex 3.2.3+maint.om/package.mo): time 0.0009636/0.0009639, allocations: 180.9 kB / 17.01 MB, free: 5.125 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.314/1.314, allocations: 205.4 MB / 223.1 MB, free: 9.031 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.0008906/0.0008907, allocations: 101.1 kB / 271.5 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002618/0.0002619, allocations: 8 kB / 328.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2392, allocations: 47.57 MB / 375.9 MB, free: 45.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1033/0.3425, allocations: 88.96 MB / 464.9 MB, free: 7.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.3428, allocations: 87.95 kB / 465 MB, free: 7.594 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.05796/0.4008, allocations: 22.1 MB / 487.1 MB, free: 1.406 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.766e-06/0.4009, allocations: 0 / 487.1 MB, free: 1.406 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.501e-05/0.4009, allocations: 24 kB / 487.1 MB, free: 1.383 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.003196/0.4041, allocations: 1.345 MB / 488.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.4042, allocations: 8.031 kB / 488.4 MB, free: 15.97 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002146/0.4044, allocations: 156.6 kB / 488.6 MB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002173/0.4046, allocations: 134.4 kB / 488.7 MB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.4058, allocations: 0.6531 MB / 489.4 MB, free: 14.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001319/0.4059, allocations: 74 kB / 489.4 MB, free: 14.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001524/0.4061, allocations: 99.91 kB / 489.5 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001999/0.4081, allocations: 1.04 MB / 490.6 MB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.133e-05/0.4081, allocations: 7.938 kB / 490.6 MB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.659e-05/0.4082, allocations: 36 kB / 490.6 MB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.121e-05/0.4083, allocations: 23.98 kB / 490.7 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002023/0.4103, allocations: 0.9811 MB / 491.6 MB, free: 12.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005886/0.4162, allocations: 3.879 MB / 495.5 MB, free: 8.645 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002296/0.4185, allocations: 0.9479 MB / 496.5 MB, free: 7.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.085e-05/0.4186, allocations: 12.56 kB / 496.5 MB, free: 7.668 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.4186, allocations: 47.06 kB / 496.5 MB, free: 7.613 MB / 378.7 MB Notification: Performance of pre-optimization done (n=68): time 3.427e-06/0.4186, allocations: 0 / 496.5 MB, free: 7.613 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.00549/0.4241, allocations: 2.216 MB / 498.7 MB, free: 5.391 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.802e-05/0.4242, allocations: 85.55 kB / 498.8 MB, free: 5.289 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001203/0.4254, allocations: 0.8283 MB / 499.6 MB, free: 4.453 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/0.4255, allocations: 41.7 kB / 499.7 MB, free: 4.406 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003447/0.4259, allocations: 0.4951 MB / 0.4885 GB, free: 3.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.4261, allocations: 283.9 kB / 0.4887 GB, free: 3.621 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-05/0.4262, allocations: 19.94 kB / 0.4887 GB, free: 3.602 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4263, allocations: 345.9 kB / 0.4891 GB, free: 3.258 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000954/0.4273, allocations: 417.8 kB / 0.4895 GB, free: 2.848 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.4283, allocations: 0.5603 MB / 0.49 GB, free: 2.234 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001/0.4293, allocations: 457.7 kB / 0.4905 GB, free: 1.785 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.4293, allocations: 3.984 kB / 0.4905 GB, free: 1.781 MB / 378.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.002393/0.4317, allocations: 1.142 MB / 0.4916 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.316e-05/0.4318, allocations: 11.98 kB / 0.4916 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.4318, allocations: 4 kB / 0.4916 GB, free: 0.6133 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.4318, allocations: 8 kB / 0.4916 GB, free: 0.6055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/0.4332, allocations: 335.6 kB / 0.4919 GB, free: 284 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.782e-05/0.4332, allocations: 11.94 kB / 0.4919 GB, free: 272 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001075/0.4343, allocations: 119.9 kB / 0.492 GB, free: 152 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.532e-05/0.4344, allocations: 35.98 kB / 0.4921 GB, free: 116 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.1651/0.5995, allocations: 282.5 kB / 0.4924 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003012/0.5998, allocations: 98.75 kB / 0.4924 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001368/0.6012, allocations: 487 kB / 0.4929 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.526e-05/0.6013, allocations: 8.375 kB / 0.4929 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/0.6013, allocations: 1.062 kB / 0.4929 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.035e-05/0.6013, allocations: 4.422 kB / 0.4929 GB, free: 100.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004711/0.606, allocations: 2.934 MB / 0.4958 GB, free: 99.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.143e-05/0.6061, allocations: 14.86 kB / 0.4958 GB, free: 99.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009719/0.607, allocations: 268.3 kB / 0.4961 GB, free: 99.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.041e-05/0.6071, allocations: 15.28 kB / 0.4961 GB, free: 99.69 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.521e-05/0.6071, allocations: 29.25 kB / 0.4961 GB, free: 99.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.43e-05/0.6072, allocations: 16.28 kB / 0.4961 GB, free: 99.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-05/0.6072, allocations: 23.44 kB / 0.4961 GB, free: 99.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.609, allocations: 1.741 MB / 0.4978 GB, free: 98.42 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002967/0.6094, allocations: 206 kB / 0.498 GB, free: 98.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001173/0.6095, allocations: 24.66 kB / 0.4981 GB, free: 98.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007444/0.6102, allocations: 84.81 kB / 0.4981 GB, free: 98.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001213/0.6104, allocations: 85.08 kB / 0.4982 GB, free: 98.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.135e-05/0.6104, allocations: 37.91 kB / 0.4983 GB, free: 98.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009001/0.6113, allocations: 0.6381 MB / 0.4989 GB, free: 98.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6113, allocations: 3.719 kB / 0.4989 GB, free: 98.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009625/0.6123, allocations: 233.1 kB / 0.4991 GB, free: 98.2 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.003302/0.6156, allocations: 5.56 MB / 0.5045 GB, free: 93.38 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001946/0.6176, allocations: 0.8886 MB / 0.5054 GB, free: 93.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.6176, allocations: 2.031 kB / 0.5054 GB, free: 93.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000889/0.6185, allocations: 472.4 kB / 0.5059 GB, free: 93.32 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001016/0.6195, allocations: 185.5 kB / 0.506 GB, free: 93.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008965/0.6285, allocations: 8.809 MB / 0.5146 GB, free: 87.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004726/0.629, allocations: 1.057 MB / 0.5157 GB, free: 87.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006423/0.6297, allocations: 122.1 kB / 0.5158 GB, free: 86.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004702/0.6301, allocations: 390.2 kB / 0.5162 GB, free: 86.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/0.6302, allocations: 0 / 0.5162 GB, free: 86.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/0.6618, allocations: 19.01 MB / 0.5347 GB, free: 77.69 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001867/0.662, allocations: 242.7 kB / 0.5349 GB, free: 77.36 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.37/3.032, allocations: 7.938 kB / 0.535 GB, free: 77.35 MB / 378.7 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) 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