Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Shapes.Force,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force",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.001383/0.001383, allocations: 169.9 kB / 8.74 MB, free: 340 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.532/1.532, allocations: 221.5 MB / 230.7 MB, free: 7.516 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.0009951/0.0009951, allocations: 90 kB / 281.6 MB, free: 5.262 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1981/0.1981, allocations: 44.15 MB / 376.5 MB, free: 3.016 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.594e-05/1.597e-05, allocations: 0 / 444.7 MB, free: 15.12 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1317, allocations: 61.92 MB / 0.4948 GB, free: 1.133 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3925/0.5242, allocations: 91.16 MB / 0.5838 GB, free: 5.266 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000212/0.5245, allocations: 75.95 kB / 0.5839 GB, free: 5.191 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01635/0.5408, allocations: 5.736 MB / 0.5895 GB, free: 15.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.5409, allocations: 4 kB / 0.5895 GB, free: 15.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.941e-05/0.5409, allocations: 8 kB / 0.5895 GB, free: 15.43 MB / 410.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.001064/0.542, allocations: 0.6 MB / 0.5901 GB, free: 14.78 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.542, allocations: 13.11 kB / 0.5901 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.154e-05/0.5421, allocations: 52.8 kB / 0.5901 GB, free: 14.72 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003403/0.5425, allocations: 282.2 kB / 0.5904 GB, free: 14.4 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.5425, allocations: 12 kB / 0.5904 GB, free: 14.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.966e-05/0.5426, allocations: 28 kB / 0.5904 GB, free: 14.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004459/0.543, allocations: 241.5 kB / 0.5907 GB, free: 14.13 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000461/0.5435, allocations: 262.2 kB / 0.5909 GB, free: 13.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.5435, allocations: 0 / 0.5909 GB, free: 13.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.5436, allocations: 0 / 0.5909 GB, free: 13.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.5436, allocations: 12 kB / 0.5909 GB, free: 13.85 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.5457, allocations: 1.273 MB / 0.5922 GB, free: 12.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003957/0.5461, allocations: 236.2 kB / 0.5924 GB, free: 12.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002135/0.5463, allocations: 145.2 kB / 0.5925 GB, free: 12.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.782e-05/0.5464, allocations: 12.27 kB / 0.5925 GB, free: 12.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.5464, allocations: 34.78 kB / 0.5926 GB, free: 12.05 MB / 410.7 MB Notification: Performance of pre-optimization done (n=34): time 1.403e-06/0.5464, allocations: 0 / 0.5926 GB, free: 12.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=34): time 0.0004643/0.5469, allocations: 231.8 kB / 0.5928 GB, free: 11.82 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.195e-05/0.5469, allocations: 59.41 kB / 0.5929 GB, free: 11.75 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.5471, allocations: 196.4 kB / 0.593 GB, free: 11.55 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.749e-05/0.5472, allocations: 25.7 kB / 0.5931 GB, free: 11.52 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.5473, allocations: 208 kB / 0.5933 GB, free: 11.31 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.288e-05/0.5474, allocations: 114.3 kB / 0.5934 GB, free: 11.2 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.579e-05/0.5474, allocations: 0 / 0.5934 GB, free: 11.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.5475, allocations: 338.8 kB / 0.5937 GB, free: 10.86 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001442/0.5477, allocations: 76.88 kB / 0.5938 GB, free: 10.79 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.5479, allocations: 150.7 kB / 0.5939 GB, free: 10.61 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.5481, allocations: 105.5 kB / 0.594 GB, free: 10.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.5481, allocations: 4 kB / 0.594 GB, free: 10.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004708/0.5486, allocations: 287.1 kB / 0.5943 GB, free: 10.22 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/0.5486, allocations: 7.953 kB / 0.5943 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.5486, allocations: 4 kB / 0.5943 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.5486, allocations: 4 kB / 0.5943 GB, free: 10.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004988/0.5491, allocations: 103.9 kB / 0.5944 GB, free: 10.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.5492, allocations: 12.16 kB / 0.5944 GB, free: 10.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.5494, allocations: 35.58 kB / 0.5944 GB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.868e-05/0.5495, allocations: 16 kB / 0.5945 GB, free: 10.04 MB / 410.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.269e-05/0.5496, allocations: 108.9 kB / 0.5946 GB, free: 9.93 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00039/0.55, allocations: 233.5 kB / 0.5948 GB, free: 9.695 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.99e-05/0.55, allocations: 31.67 kB / 0.5948 GB, free: 9.664 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004798/0.5505, allocations: 268.6 kB / 0.5951 GB, free: 9.395 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.5505, allocations: 8 kB / 0.5951 GB, free: 9.387 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.5505, allocations: 0 / 0.5951 GB, free: 9.387 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.5506, allocations: 0 / 0.5951 GB, free: 9.387 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004398/0.551, allocations: 341.7 kB / 0.5954 GB, free: 9.016 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.551, allocations: 0 / 0.5954 GB, free: 9.016 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004273/0.5514, allocations: 87.88 kB / 0.5955 GB, free: 8.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.871e-06/0.5515, allocations: 3.953 kB / 0.5955 GB, free: 8.926 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.045e-05/0.5515, allocations: 4 kB / 0.5955 GB, free: 8.922 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.5515, allocations: 4 kB / 0.5955 GB, free: 8.918 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.94e-06/0.5515, allocations: 7.984 kB / 0.5955 GB, free: 8.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006462/0.5522, allocations: 446.7 kB / 0.5959 GB, free: 8.457 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.5523, allocations: 128.6 kB / 0.5961 GB, free: 8.312 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.267e-05/0.5523, allocations: 7.953 kB / 0.5961 GB, free: 8.305 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.5526, allocations: 7.984 kB / 0.5961 GB, free: 8.297 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.898e-05/0.5526, allocations: 27.91 kB / 0.5961 GB, free: 8.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.555e-05/0.5527, allocations: 8.062 kB / 0.5961 GB, free: 8.262 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001307/0.5528, allocations: 160.4 kB / 0.5963 GB, free: 8.102 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5528, allocations: 0 / 0.5963 GB, free: 8.102 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003674/0.5532, allocations: 87.69 kB / 0.5963 GB, free: 8.016 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.0009563/0.5542, allocations: 0.974 MB / 0.5973 GB, free: 7.016 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004133/0.5546, allocations: 240 kB / 0.5975 GB, free: 6.781 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.5546, allocations: 0 / 0.5975 GB, free: 6.781 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001626/0.5548, allocations: 111.9 kB / 0.5976 GB, free: 6.672 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.555, allocations: 21.64 kB / 0.5977 GB, free: 6.652 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001331/0.5564, allocations: 0.5754 MB / 0.5982 GB, free: 6.039 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.5567, allocations: 0.7955 MB / 0.599 GB, free: 5.215 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0001991/0.5569, allocations: 39.19 kB / 0.599 GB, free: 5.18 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001812/0.5571, allocations: 107.4 kB / 0.5991 GB, free: 5.074 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5571, allocations: 0 / 0.5991 GB, free: 5.074 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02337/0.5805, allocations: 4.488 MB / 0.6035 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001926/0.5808, allocations: 146.4 kB / 0.6037 GB, free: 432 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.853/2.434, allocations: 0 / 0.6037 GB, free: 432 kB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Shapes_Force.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Shapes.Force_res.mat does not exist to compare? outputFormat=mat