Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001014/0.001014, allocations: 198.9 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 225.6 MB / 234.8 MB, free: 3.191 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000837/0.000837, allocations: 94.25 kB / 286.7 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.215/0.215, allocations: 45.14 MB / 383.8 MB, free: 240 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.735e-05/1.771e-05, allocations: 3.984 kB / 453.3 MB, free: 75.72 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09747/0.09751, allocations: 63.25 MB / 0.5045 GB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3611/0.4587, allocations: 92.22 MB / 0.5945 GB, free: 9.988 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002434/0.459, allocations: 78.83 kB / 0.5946 GB, free: 9.945 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01519/0.4742, allocations: 5.806 MB / 0.6003 GB, free: 5.031 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4742, allocations: 0 / 0.6003 GB, free: 5.031 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.893e-05/0.4743, allocations: 8 kB / 0.6003 GB, free: 5.023 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.00096/0.4752, allocations: 0.616 MB / 0.6009 GB, free: 4.387 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.4753, allocations: 12.03 kB / 0.6009 GB, free: 4.375 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002549/0.4755, allocations: 63.41 kB / 0.6009 GB, free: 4.316 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003197/0.4759, allocations: 275.2 kB / 0.6012 GB, free: 4.031 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.4759, allocations: 12 kB / 0.6012 GB, free: 4.02 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/0.476, allocations: 24 kB / 0.6012 GB, free: 3.996 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004364/0.4764, allocations: 249.6 kB / 0.6015 GB, free: 3.84 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004567/0.4769, allocations: 258.3 kB / 0.6017 GB, free: 3.645 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.815e-05/0.4769, allocations: 7.906 kB / 0.6017 GB, free: 3.637 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.804e-05/0.4769, allocations: 4 kB / 0.6017 GB, free: 3.633 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.026e-06/0.4769, allocations: 8 kB / 0.6017 GB, free: 3.625 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001978/0.4789, allocations: 1.261 MB / 0.603 GB, free: 2.523 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003337/0.4793, allocations: 245.2 kB / 0.6032 GB, free: 2.352 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.4795, allocations: 134.7 kB / 0.6033 GB, free: 2.27 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.4795, allocations: 8.281 kB / 0.6033 GB, free: 2.262 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.4795, allocations: 30.84 kB / 0.6034 GB, free: 2.223 MB / 394.7 MB Notification: Performance of pre-optimization done (n=34): time 1.813e-06/0.4795, allocations: 0 / 0.6034 GB, free: 2.223 MB / 394.7 MB Notification: Performance of matching and sorting (n=34): time 0.0003946/0.4799, allocations: 240.7 kB / 0.6036 GB, free: 2.039 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.289e-05/0.48, allocations: 55.41 kB / 0.6037 GB, free: 1.973 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.4801, allocations: 194.9 kB / 0.6038 GB, free: 1.805 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.4802, allocations: 25.7 kB / 0.6039 GB, free: 1.773 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.703e-05/0.4803, allocations: 213.2 kB / 0.6041 GB, free: 1.59 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.98e-05/0.4804, allocations: 113.7 kB / 0.6042 GB, free: 1.492 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.516e-05/0.4804, allocations: 0 / 0.6042 GB, free: 1.492 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.4805, allocations: 340.6 kB / 0.6045 GB, free: 1.16 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.4806, allocations: 77.69 kB / 0.6046 GB, free: 1.113 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.4808, allocations: 147.7 kB / 0.6047 GB, free: 0.9844 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.481, allocations: 109 kB / 0.6048 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.481, allocations: 0 / 0.6048 GB, free: 0.9141 MB / 394.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004225/0.4814, allocations: 295.2 kB / 0.6051 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.4814, allocations: 8 kB / 0.6051 GB, free: 0.6797 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.4814, allocations: 3.984 kB / 0.6051 GB, free: 0.6758 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.4815, allocations: 4 kB / 0.6051 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004719/0.4819, allocations: 107.2 kB / 0.6052 GB, free: 0.5703 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.482, allocations: 4 kB / 0.6052 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002517/0.4822, allocations: 35.67 kB / 0.6053 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.998e-05/0.4823, allocations: 15.48 kB / 0.6053 GB, free: 0.5195 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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 9.741e-05/0.4824, allocations: 120.8 kB / 0.6054 GB, free: 404 kB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003467/0.4827, allocations: 236.5 kB / 0.6056 GB, free: 216 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.911e-05/0.4828, allocations: 23.72 kB / 0.6056 GB, free: 192 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004663/0.4832, allocations: 264.2 kB / 0.6059 GB, free: 15.99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.4833, allocations: 7.938 kB / 0.6059 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.4833, allocations: 3.938 kB / 0.6059 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.4833, allocations: 0 / 0.6059 GB, free: 15.98 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004222/0.4837, allocations: 344.2 kB / 0.6062 GB, free: 15.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.4837, allocations: 4 kB / 0.6062 GB, free: 15.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004226/0.4842, allocations: 79.94 kB / 0.6063 GB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.316e-06/0.4842, allocations: 4 kB / 0.6063 GB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.443e-05/0.4842, allocations: 11.11 kB / 0.6063 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.4842, allocations: 0 / 0.6063 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/0.4842, allocations: 3.984 kB / 0.6063 GB, free: 15.58 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005692/0.4848, allocations: 459.7 kB / 0.6068 GB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.4849, allocations: 126.9 kB / 0.6069 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.87e-05/0.485, allocations: 0 / 0.6069 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002166/0.4852, allocations: 15.92 kB / 0.6069 GB, free: 15.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.438e-05/0.4853, allocations: 19.47 kB / 0.6069 GB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.4853, allocations: 4 kB / 0.6069 GB, free: 15.05 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001227/0.4854, allocations: 159.9 kB / 0.6071 GB, free: 14.92 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4854, allocations: 0 / 0.6071 GB, free: 14.92 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003601/0.4858, allocations: 83.69 kB / 0.6072 GB, free: 14.84 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (position.s,position.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 35 * 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.000877/0.4867, allocations: 0.9834 MB / 0.6081 GB, free: 13.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003813/0.4871, allocations: 229.4 kB / 0.6083 GB, free: 13.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4871, allocations: 0 / 0.6083 GB, free: 13.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.4872, allocations: 122.8 kB / 0.6084 GB, free: 13.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002375/0.4875, allocations: 15.38 kB / 0.6085 GB, free: 13.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001276/0.4888, allocations: 0.5879 MB / 0.609 GB, free: 13.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003001/0.4891, allocations: 0.7916 MB / 0.6098 GB, free: 12.29 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002038/0.4893, allocations: 35.27 kB / 0.6098 GB, free: 12.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.4894, allocations: 110.4 kB / 0.6099 GB, free: 12.22 MB / 410.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4895, allocations: 0 / 0.6099 GB, free: 12.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0226/0.5121, allocations: 4.501 MB / 0.6143 GB, free: 7.754 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001681/0.5123, allocations: 141.1 kB / 0.6145 GB, free: 7.559 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/2.379, allocations: 0 / 0.6145 GB, free: 7.559 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_trunk_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat does not exist to compare? outputFormat=mat