Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.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.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegratorForceState",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.001061/0.001061, allocations: 177 kB / 17.06 MB, free: 5.098 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.316/1.316, allocations: 223.2 MB / 241 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008636/0.0008636, allocations: 98.88 kB / 292.1 MB, free: 10.91 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.3445/0.3445, allocations: 44.22 MB / 387.5 MB, free: 38.82 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003392/0.0003393, allocations: 8 kB / 460 MB, free: 1.434 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3531/0.3534, allocations: 61.89 MB / 0.5096 GB, free: 38.09 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1186/0.4721, allocations: 86.17 MB / 0.5938 GB, free: 8.945 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001965/0.4723, allocations: 63.94 kB / 0.5938 GB, free: 8.887 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002511/0.4748, allocations: 1.042 MB / 0.5949 GB, free: 7.84 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.4749, allocations: 4 kB / 0.5949 GB, free: 7.836 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.036e-06/0.4749, allocations: 0 / 0.5949 GB, free: 7.836 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000375/0.4753, allocations: 355.1 kB / 0.5952 GB, free: 7.441 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.4753, allocations: 8.25 kB / 0.5952 GB, free: 7.434 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.653e-05/0.4754, allocations: 34.56 kB / 0.5952 GB, free: 7.391 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.608e-05/0.4754, allocations: 3.938 kB / 0.5952 GB, free: 7.387 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.4756, allocations: 186.9 kB / 0.5954 GB, free: 7.164 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.4756, allocations: 4 kB / 0.5954 GB, free: 7.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.223e-05/0.4757, allocations: 11.95 kB / 0.5954 GB, free: 7.148 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001745/0.4758, allocations: 68.19 kB / 0.5955 GB, free: 7.066 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.4759, allocations: 0 / 0.5955 GB, free: 7.066 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.4759, allocations: 8 kB / 0.5955 GB, free: 7.059 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.4759, allocations: 0 / 0.5955 GB, free: 7.059 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.507e-05/0.476, allocations: 31.92 kB / 0.5955 GB, free: 7.027 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005228/0.4765, allocations: 437.3 kB / 0.596 GB, free: 6.543 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.4767, allocations: 46.5 kB / 0.596 GB, free: 6.488 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.558e-06/0.4767, allocations: 0 / 0.596 GB, free: 6.488 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.4768, allocations: 34.56 kB / 0.596 GB, free: 6.445 MB / 410.7 MB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.4768, allocations: 0 / 0.596 GB, free: 6.445 MB / 410.7 MB Notification: Performance of matching and sorting (n=4): time 0.0004752/0.4773, allocations: 125.8 kB / 0.5962 GB, free: 6.316 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.31e-05/0.4773, allocations: 51.41 kB / 0.5962 GB, free: 6.254 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.061e-05/0.4774, allocations: 109.1 kB / 0.5963 GB, free: 6.137 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.905e-05/0.4774, allocations: 25.7 kB / 0.5963 GB, free: 6.105 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.424e-05/0.4775, allocations: 88.05 kB / 0.5964 GB, free: 6.016 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/0.4775, allocations: 23.73 kB / 0.5964 GB, free: 5.992 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-06/0.4775, allocations: 0 / 0.5964 GB, free: 5.992 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.4776, allocations: 322.8 kB / 0.5967 GB, free: 5.668 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.878e-05/0.4777, allocations: 23.98 kB / 0.5968 GB, free: 5.645 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.151e-05/0.4777, allocations: 39.42 kB / 0.5968 GB, free: 5.594 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.085e-05/0.4778, allocations: 16 kB / 0.5968 GB, free: 5.578 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.4778, allocations: 4 kB / 0.5968 GB, free: 5.574 MB / 410.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001493/0.478, allocations: 93.45 kB / 0.5969 GB, free: 5.477 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/0.478, allocations: 4 kB / 0.5969 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.478, allocations: 0 / 0.5969 GB, free: 5.473 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.478, allocations: 8 kB / 0.5969 GB, free: 5.465 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.216e-05/0.4781, allocations: 15.98 kB / 0.5969 GB, free: 5.449 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.4781, allocations: 96 / 0.5969 GB, free: 5.449 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.783e-05/0.4781, allocations: 8 kB / 0.5969 GB, free: 5.441 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.61e-06/0.4781, allocations: 0 / 0.5969 GB, free: 5.441 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 7.878e-05/0.4782, allocations: 122.3 kB / 0.5971 GB, free: 5.312 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.337e-05/0.4783, allocations: 7.938 kB / 0.5971 GB, free: 5.305 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.912e-05/0.4783, allocations: 11.89 kB / 0.5971 GB, free: 5.293 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.4783, allocations: 0 / 0.5971 GB, free: 5.293 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.4783, allocations: 0 / 0.5971 GB, free: 5.293 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.4783, allocations: 4 kB / 0.5971 GB, free: 5.289 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001493/0.4785, allocations: 173.6 kB / 0.5973 GB, free: 5.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.4785, allocations: 0 / 0.5973 GB, free: 5.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.307e-05/0.4786, allocations: 8 kB / 0.5973 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4786, allocations: 0 / 0.5973 GB, free: 5.062 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-06/0.4786, allocations: 4 kB / 0.5973 GB, free: 5.059 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.4786, allocations: 0 / 0.5973 GB, free: 5.059 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.4786, allocations: 3.984 kB / 0.5973 GB, free: 5.055 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002224/0.4788, allocations: 187.4 kB / 0.5974 GB, free: 4.855 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.562e-05/0.4789, allocations: 81.06 kB / 0.5975 GB, free: 4.758 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.417e-05/0.4789, allocations: 32 / 0.5975 GB, free: 4.758 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.918e-05/0.479, allocations: 7.984 kB / 0.5975 GB, free: 4.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.26e-05/0.479, allocations: 4 kB / 0.5975 GB, free: 4.746 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.479, allocations: 0 / 0.5975 GB, free: 4.746 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.301e-05/0.479, allocations: 95.58 kB / 0.5976 GB, free: 4.652 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4791, allocations: 4.062 kB / 0.5976 GB, free: 4.648 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000208/0.4793, allocations: 8 kB / 0.5976 GB, free: 4.641 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.y) * 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 (4): * Single equations (assignments): 4 * 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.0004307/0.4797, allocations: 0.7124 MB / 0.5983 GB, free: 3.902 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001333/0.4799, allocations: 47.98 kB / 0.5984 GB, free: 3.855 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.4799, allocations: 0 / 0.5984 GB, free: 3.855 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.017e-05/0.4799, allocations: 24.2 kB / 0.5984 GB, free: 3.832 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.4801, allocations: 5.375 kB / 0.5984 GB, free: 3.828 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009246/0.4811, allocations: 0.9665 MB / 0.5994 GB, free: 2.805 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002226/0.4813, allocations: 0.6887 MB / 0.6 GB, free: 2.09 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.856e-05/0.4813, allocations: 4.188 kB / 0.6 GB, free: 2.086 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.346e-05/0.4814, allocations: 15.48 kB / 0.6 GB, free: 2.07 MB / 410.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4814, allocations: 0 / 0.6 GB, free: 2.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01046/0.4919, allocations: 1.32 MB / 0.6013 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/0.492, allocations: 178.4 kB / 0.6015 GB, free: 0.625 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.371/1.863, allocations: 0 / 0.6015 GB, free: 0.625 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegratorForceState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegratorForceState_res.mat does not exist to compare? outputFormat=mat