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.001948/0.001948, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 227.2 MB / 245 MB, free: 7.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009635/0.0009635, allocations: 109.6 kB / 297.3 MB, free: 6.168 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3702/0.3702, allocations: 45.22 MB / 394.6 MB, free: 31.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002488/0.0002489, allocations: 8 kB / 468.5 MB, free: 7.605 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3532, allocations: 63.24 MB / 0.5193 GB, free: 43.68 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1354/0.4886, allocations: 92.95 MB / 0.61 GB, free: 12.64 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.489, allocations: 84.53 kB / 0.6101 GB, free: 12.56 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01642/0.5054, allocations: 5.859 MB / 0.6158 GB, free: 6.719 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.759e-06/0.5055, allocations: 0 / 0.6158 GB, free: 6.719 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.302e-05/0.5055, allocations: 19.92 kB / 0.6159 GB, free: 6.699 MB / 426.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.001117/0.5066, allocations: 0.64 MB / 0.6165 GB, free: 6.008 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.847e-05/0.5067, allocations: 8.031 kB / 0.6165 GB, free: 6 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.565e-05/0.5068, allocations: 78.47 kB / 0.6166 GB, free: 5.914 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002469/0.507, allocations: 59.72 kB / 0.6166 GB, free: 5.855 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003471/0.5074, allocations: 270.5 kB / 0.6169 GB, free: 5.551 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.5074, allocations: 29 kB / 0.6169 GB, free: 5.523 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.416e-05/0.5075, allocations: 51.89 kB / 0.617 GB, free: 5.473 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006106/0.5081, allocations: 334.5 kB / 0.6173 GB, free: 5.141 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.5081, allocations: 4 kB / 0.6173 GB, free: 5.137 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.428e-05/0.5082, allocations: 19.88 kB / 0.6173 GB, free: 5.117 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.5082, allocations: 12 kB / 0.6173 GB, free: 5.105 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006275/0.5088, allocations: 319.7 kB / 0.6176 GB, free: 4.793 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002258/0.5111, allocations: 1.343 MB / 0.6189 GB, free: 3.355 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005101/0.5116, allocations: 280.8 kB / 0.6192 GB, free: 3.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.5117, allocations: 4.281 kB / 0.6192 GB, free: 3.066 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/0.5117, allocations: 42.84 kB / 0.6192 GB, free: 3.016 MB / 426.7 MB Notification: Performance of pre-optimization done (n=34): time 3.527e-06/0.5117, allocations: 3.984 kB / 0.6193 GB, free: 3.012 MB / 426.7 MB Notification: Performance of matching and sorting (n=34): time 0.0008348/0.5126, allocations: 384 kB / 0.6196 GB, free: 2.633 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.5126, allocations: 59.34 kB / 0.6197 GB, free: 2.562 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002821/0.5129, allocations: 241.7 kB / 0.6199 GB, free: 2.324 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.058e-05/0.513, allocations: 33.7 kB / 0.6199 GB, free: 2.285 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.5131, allocations: 207.9 kB / 0.6201 GB, free: 2.078 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.954e-05/0.5132, allocations: 118.3 kB / 0.6202 GB, free: 1.961 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.015e-05/0.5132, allocations: 8 kB / 0.6203 GB, free: 1.953 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.5134, allocations: 338.8 kB / 0.6206 GB, free: 1.613 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.5136, allocations: 108.8 kB / 0.6207 GB, free: 1.508 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002804/0.5139, allocations: 179.4 kB / 0.6209 GB, free: 1.301 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000275/0.5142, allocations: 129.6 kB / 0.621 GB, free: 1.176 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.5142, allocations: 0 / 0.621 GB, free: 1.176 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006624/0.5149, allocations: 375.1 kB / 0.6213 GB, free: 0.8047 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.5149, allocations: 8 kB / 0.6213 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.5149, allocations: 0 / 0.6213 GB, free: 0.7969 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.515, allocations: 4 kB / 0.6213 GB, free: 0.793 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005103/0.5155, allocations: 111.8 kB / 0.6215 GB, free: 0.6836 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/0.5155, allocations: 4 kB / 0.6215 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000289/0.5158, allocations: 39.67 kB / 0.6215 GB, free: 0.6406 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.183e-05/0.5158, allocations: 20 kB / 0.6215 GB, free: 0.6211 MB / 426.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 () * Number of clocked 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 0.0002203/0.5161, allocations: 151.5 kB / 0.6217 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.347e-05/0.5161, allocations: 27.62 kB / 0.6217 GB, free: 448 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007408/0.5169, allocations: 350.8 kB / 0.622 GB, free: 96 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.5169, allocations: 4 kB / 0.622 GB, free: 92 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.063e-06/0.5169, allocations: 0 / 0.622 GB, free: 92 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.5169, allocations: 0 / 0.622 GB, free: 92 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006059/0.5175, allocations: 405.1 kB / 0.6224 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.5176, allocations: 0 / 0.6224 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004548/0.518, allocations: 87.88 kB / 0.6225 GB, free: 15.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.893e-06/0.518, allocations: 4 kB / 0.6225 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.256e-05/0.5181, allocations: 4 kB / 0.6225 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/0.5181, allocations: 4 kB / 0.6225 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.5181, allocations: 0 / 0.6225 GB, free: 15.55 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009517/0.519, allocations: 0.5306 MB / 0.623 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.5192, allocations: 132.6 kB / 0.6231 GB, free: 14.85 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.513e-05/0.5193, allocations: 4 kB / 0.6232 GB, free: 14.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.5195, allocations: 15.98 kB / 0.6232 GB, free: 14.83 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.141e-05/0.5196, allocations: 23.91 kB / 0.6232 GB, free: 14.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.5196, allocations: 12 kB / 0.6232 GB, free: 14.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001904/0.5198, allocations: 190 kB / 0.6234 GB, free: 14.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5198, allocations: 8 kB / 0.6234 GB, free: 14.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00037/0.5202, allocations: 91.78 kB / 0.6235 GB, free: 14.51 MB / 442.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 () * Number of clocked 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.001245/0.5215, allocations: 1.082 MB / 0.6245 GB, free: 13.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006729/0.5221, allocations: 283.8 kB / 0.6248 GB, free: 13.13 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5222, allocations: 0 / 0.6248 GB, free: 13.13 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002747/0.5224, allocations: 139.7 kB / 0.6249 GB, free: 12.99 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003399/0.5228, allocations: 26.62 kB / 0.625 GB, free: 12.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00381/0.5266, allocations: 3.086 MB / 0.628 GB, free: 9.801 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004427/0.5271, allocations: 0.7952 MB / 0.6288 GB, free: 8.98 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002141/0.5273, allocations: 42.92 kB / 0.6288 GB, free: 8.938 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001843/0.5275, allocations: 111.4 kB / 0.6289 GB, free: 8.828 MB / 442.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5275, allocations: 0 / 0.6289 GB, free: 8.828 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01804/0.5455, allocations: 5.163 MB / 0.6339 GB, free: 3.84 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/0.5458, allocations: 181.9 kB / 0.6341 GB, free: 3.594 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.223/2.768, allocations: 0 / 0.6341 GB, free: 3.594 MB / 442.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