Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.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.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Magnetic.FluxTubes.Sources,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources",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.001575/0.001575, allocations: 180.3 kB / 14.15 MB, free: 1.176 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.515/1.515, allocations: 221.3 MB / 236 MB, free: 2.953 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.0008534/0.0008536, allocations: 95.8 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1895/0.1895, allocations: 44.15 MB / 382 MB, free: 14.7 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.386e-05/3.414e-05, allocations: 224 / 451.9 MB, free: 9.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1328, allocations: 61.92 MB / 0.5018 GB, free: 11.37 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4206/0.5535, allocations: 89.4 MB / 0.5891 GB, free: 15.86 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002295/0.5538, allocations: 63.97 kB / 0.5892 GB, free: 15.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01939/0.5732, allocations: 7.196 MB / 0.5962 GB, free: 8.594 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5733, allocations: 0 / 0.5962 GB, free: 8.594 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.5733, allocations: 4 kB / 0.5962 GB, free: 8.59 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001077/0.5744, allocations: 0.588 MB / 0.5968 GB, free: 7.957 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.5744, allocations: 8.031 kB / 0.5968 GB, free: 7.949 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.217e-05/0.5745, allocations: 70.53 kB / 0.5968 GB, free: 7.871 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.792e-05/0.5746, allocations: 47.53 kB / 0.5969 GB, free: 7.824 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003801/0.575, allocations: 276.3 kB / 0.5972 GB, free: 7.508 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.575, allocations: 24.78 kB / 0.5972 GB, free: 7.484 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.066e-05/0.5751, allocations: 43.94 kB / 0.5972 GB, free: 7.441 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005506/0.5757, allocations: 319.9 kB / 0.5975 GB, free: 7.109 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.5757, allocations: 0 / 0.5975 GB, free: 7.109 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.14e-05/0.5757, allocations: 12 kB / 0.5975 GB, free: 7.098 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.5757, allocations: 12 kB / 0.5975 GB, free: 7.086 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003781/0.5761, allocations: 213 kB / 0.5977 GB, free: 6.879 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001876/0.578, allocations: 1.29 MB / 0.599 GB, free: 5.504 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003382/0.5784, allocations: 162.7 kB / 0.5992 GB, free: 5.309 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.305e-05/0.5785, allocations: 67.38 kB / 0.5992 GB, free: 5.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.5785, allocations: 176 / 0.5992 GB, free: 5.23 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.5785, allocations: 42.52 kB / 0.5993 GB, free: 5.18 MB / 410.7 MB Notification: Performance of pre-optimization done (n=15): time 1.032e-06/0.5785, allocations: 0 / 0.5993 GB, free: 5.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003357/0.5789, allocations: 137.2 kB / 0.5994 GB, free: 5.039 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.18e-05/0.579, allocations: 144.5 kB / 0.5995 GB, free: 4.867 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000302/0.5793, allocations: 286.6 kB / 0.5998 GB, free: 4.582 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.5793, allocations: 29.7 kB / 0.5998 GB, free: 4.547 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.5795, allocations: 239.3 kB / 0.6001 GB, free: 4.309 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.856e-05/0.5796, allocations: 55.25 kB / 0.6001 GB, free: 4.254 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.223e-05/0.5796, allocations: 4 kB / 0.6001 GB, free: 4.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.5797, allocations: 342.8 kB / 0.6005 GB, free: 3.906 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/0.5798, allocations: 48.56 kB / 0.6005 GB, free: 3.855 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001791/0.58, allocations: 148.2 kB / 0.6006 GB, free: 3.672 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001351/0.5802, allocations: 71.91 kB / 0.6007 GB, free: 3.602 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.5802, allocations: 0 / 0.6007 GB, free: 3.602 MB / 410.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.0004065/0.5806, allocations: 257.3 kB / 0.601 GB, free: 3.344 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.5806, allocations: 13.44 kB / 0.601 GB, free: 3.332 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.5806, allocations: 7.953 kB / 0.601 GB, free: 3.324 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.5807, allocations: 4 kB / 0.601 GB, free: 3.32 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.581, allocations: 83.83 kB / 0.6011 GB, free: 3.238 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.581, allocations: 4 kB / 0.6011 GB, free: 3.234 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/0.5813, allocations: 59.59 kB / 0.6011 GB, free: 3.176 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.5813, allocations: 12.19 kB / 0.6011 GB, free: 3.164 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 34 * 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.348e-05/0.5814, allocations: 115 kB / 0.6012 GB, free: 3.047 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.684e-05/0.5815, allocations: 31.62 kB / 0.6013 GB, free: 3.016 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.48e-05/0.5816, allocations: 34.41 kB / 0.6013 GB, free: 2.977 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.5816, allocations: 7.953 kB / 0.6013 GB, free: 2.969 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.5816, allocations: 4 kB / 0.6013 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.5817, allocations: 0 / 0.6013 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007661/0.5824, allocations: 0.5915 MB / 0.6019 GB, free: 2.301 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.5824, allocations: 0 / 0.6019 GB, free: 2.301 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.5826, allocations: 43.91 kB / 0.6019 GB, free: 2.258 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.68e-06/0.5827, allocations: 8.156 kB / 0.6019 GB, free: 2.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.5827, allocations: 11.98 kB / 0.602 GB, free: 2.238 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.5827, allocations: 3.938 kB / 0.602 GB, free: 2.234 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.5827, allocations: 4 kB / 0.602 GB, free: 2.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003759/0.5831, allocations: 416.9 kB / 0.6024 GB, free: 1.754 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.5832, allocations: 112.7 kB / 0.6025 GB, free: 1.625 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.5832, allocations: 8 kB / 0.6025 GB, free: 1.617 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.5835, allocations: 19.98 kB / 0.6025 GB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.345e-05/0.5836, allocations: 15.98 kB / 0.6025 GB, free: 1.582 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.5836, allocations: 4 kB / 0.6025 GB, free: 1.578 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002419/0.5838, allocations: 226.1 kB / 0.6027 GB, free: 1.355 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5838, allocations: 0 / 0.6027 GB, free: 1.355 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003601/0.5842, allocations: 71.84 kB / 0.6028 GB, free: 1.285 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.00095/0.5852, allocations: 1.369 MB / 0.6041 GB, free: 15.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0003201/0.5855, allocations: 143.8 kB / 0.6043 GB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5855, allocations: 0 / 0.6043 GB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.5856, allocations: 55.94 kB / 0.6043 GB, free: 15.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.5859, allocations: 21.16 kB / 0.6043 GB, free: 15.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009248/0.5868, allocations: 423.8 kB / 0.6047 GB, free: 15.18 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.5872, allocations: 0.7798 MB / 0.6055 GB, free: 14.37 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.5873, allocations: 30.33 kB / 0.6055 GB, free: 14.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.5875, allocations: 95.41 kB / 0.6056 GB, free: 14.25 MB / 426.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5875, allocations: 0 / 0.6056 GB, free: 14.25 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0176/0.6051, allocations: 4.46 MB / 0.61 GB, free: 9.898 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001818/0.6053, allocations: 159.8 kB / 0.6101 GB, free: 9.664 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.113/2.719, allocations: 0 / 0.6101 GB, free: 9.664 MB / 426.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Magnetic_FluxTubes_Sources.fmu > ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Magnetic.FluxTubes.Sources_res.mat does not exist to compare? outputFormat=mat