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.0009038/0.0009038, allocations: 168.2 kB / 8.739 MB, free: 348 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.351/1.351, allocations: 221.5 MB / 230.7 MB, free: 7.555 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.0009183/0.0009184, allocations: 100.4 kB / 281.6 MB, free: 5.316 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.1825/0.1825, allocations: 44.14 MB / 376.5 MB, free: 3.035 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.554e-05/2.556e-05, allocations: 4.219 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1926, allocations: 61.91 MB / 0.4948 GB, free: 1.16 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.481/0.6737, allocations: 85.42 MB / 0.5782 GB, free: 10.94 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002395/0.674, allocations: 55.97 kB / 0.5782 GB, free: 10.89 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002766/0.6768, allocations: 1.044 MB / 0.5792 GB, free: 9.852 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.6768, allocations: 0 / 0.5792 GB, free: 9.852 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.6768, allocations: 0 / 0.5792 GB, free: 9.852 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003674/0.6772, allocations: 342.5 kB / 0.5796 GB, free: 9.473 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.6772, allocations: 15.98 kB / 0.5796 GB, free: 9.457 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.293e-05/0.6773, allocations: 4.844 kB / 0.5796 GB, free: 9.453 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.6775, allocations: 175.8 kB / 0.5798 GB, free: 9.242 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.267e-05/0.6775, allocations: 3.984 kB / 0.5798 GB, free: 9.238 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.642e-05/0.6775, allocations: 4 kB / 0.5798 GB, free: 9.234 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.129e-05/0.6776, allocations: 11.95 kB / 0.5798 GB, free: 9.223 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000114/0.6777, allocations: 68.25 kB / 0.5798 GB, free: 9.141 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.639e-06/0.6778, allocations: 0 / 0.5798 GB, free: 9.141 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.303e-05/0.6778, allocations: 0 / 0.5798 GB, free: 9.141 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.6778, allocations: 0 / 0.5798 GB, free: 9.141 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005141/0.6783, allocations: 429.5 kB / 0.5803 GB, free: 8.676 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001367/0.6785, allocations: 38.58 kB / 0.5803 GB, free: 8.629 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.571e-05/0.6785, allocations: 10.42 kB / 0.5803 GB, free: 8.617 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.6785, allocations: 4 kB / 0.5803 GB, free: 8.613 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.6786, allocations: 30.56 kB / 0.5803 GB, free: 8.574 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.6786, allocations: 0 / 0.5803 GB, free: 8.574 MB / 394.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003247/0.6789, allocations: 73.52 kB / 0.5804 GB, free: 8.496 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.349e-05/0.6789, allocations: 62.36 kB / 0.5805 GB, free: 8.426 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.261e-05/0.679, allocations: 105.2 kB / 0.5806 GB, free: 8.312 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.752e-05/0.6791, allocations: 25.7 kB / 0.5806 GB, free: 8.281 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.469e-05/0.6791, allocations: 92.05 kB / 0.5807 GB, free: 8.188 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.297e-05/0.6791, allocations: 11.75 kB / 0.5807 GB, free: 8.176 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-06/0.6792, allocations: 0 / 0.5807 GB, free: 8.176 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.6793, allocations: 322.8 kB / 0.581 GB, free: 7.852 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.049e-05/0.6793, allocations: 4 kB / 0.581 GB, free: 7.848 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.604e-05/0.6794, allocations: 43.38 kB / 0.581 GB, free: 7.793 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.533e-05/0.6794, allocations: 15.98 kB / 0.5811 GB, free: 7.777 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.6794, allocations: 0 / 0.5811 GB, free: 7.777 MB / 394.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001012/0.6795, allocations: 65.58 kB / 0.5811 GB, free: 7.707 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.6795, allocations: 4 kB / 0.5811 GB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.6796, allocations: 0 / 0.5811 GB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.6796, allocations: 8.094 kB / 0.5811 GB, free: 7.695 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.799e-05/0.6796, allocations: 8 kB / 0.5811 GB, free: 7.688 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.6797, allocations: 4 kB / 0.5811 GB, free: 7.684 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.034e-05/0.6797, allocations: 3.984 kB / 0.5811 GB, free: 7.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.6797, allocations: 4 kB / 0.5811 GB, free: 7.676 MB / 394.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 () * 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 8.658e-05/0.6798, allocations: 112.9 kB / 0.5813 GB, free: 7.559 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.746e-05/0.6799, allocations: 53.55 kB / 0.5813 GB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.299e-05/0.6799, allocations: 4 kB / 0.5813 GB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.529e-05/0.68, allocations: 8.344 kB / 0.5813 GB, free: 7.484 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.68, allocations: 288 / 0.5813 GB, free: 7.484 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.68, allocations: 0.8125 kB / 0.5813 GB, free: 7.484 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.68, allocations: 4.375 kB / 0.5813 GB, free: 7.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.6802, allocations: 150 kB / 0.5815 GB, free: 7.301 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.6802, allocations: 7.984 kB / 0.5815 GB, free: 7.293 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.598e-05/0.6803, allocations: 11.98 kB / 0.5815 GB, free: 7.281 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.6803, allocations: 3.938 kB / 0.5815 GB, free: 7.277 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.6803, allocations: 4 kB / 0.5815 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.6803, allocations: 0 / 0.5815 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/0.6803, allocations: 7.938 kB / 0.5815 GB, free: 7.266 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001786/0.6805, allocations: 159.5 kB / 0.5817 GB, free: 7.094 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.692e-05/0.6805, allocations: 81.06 kB / 0.5817 GB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.6806, allocations: 0 / 0.5817 GB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.026e-05/0.6806, allocations: 4.031 kB / 0.5817 GB, free: 6.992 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.572e-05/0.6807, allocations: 7.984 kB / 0.5817 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.6807, allocations: 0 / 0.5817 GB, free: 6.984 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.104e-05/0.6807, allocations: 91.34 kB / 0.5818 GB, free: 6.895 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6807, allocations: 0 / 0.5818 GB, free: 6.895 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002103/0.681, allocations: 4 kB / 0.5818 GB, free: 6.891 MB / 394.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 () * 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.0004267/0.6814, allocations: 0.7006 MB / 0.5825 GB, free: 6.164 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 8.371e-05/0.6815, allocations: 20 kB / 0.5825 GB, free: 6.145 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.6815, allocations: 4.25 kB / 0.5825 GB, free: 6.141 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.412e-05/0.6815, allocations: 15.94 kB / 0.5826 GB, free: 6.125 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/0.6817, allocations: 7.984 kB / 0.5826 GB, free: 6.117 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000474/0.6822, allocations: 131.7 kB / 0.5827 GB, free: 5.949 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.6825, allocations: 0.6885 MB / 0.5834 GB, free: 5.234 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.783e-05/0.6826, allocations: 192 / 0.5834 GB, free: 5.234 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.874e-05/0.6826, allocations: 19.44 kB / 0.5834 GB, free: 5.215 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.6826, allocations: 224 / 0.5834 GB, free: 5.215 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0242/0.7068, allocations: 1.006 MB / 0.5844 GB, free: 4.219 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002578/0.7072, allocations: 135.3 kB / 0.5845 GB, free: 4.027 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.486/2.193, allocations: 0 / 0.5845 GB, free: 4.027 MB / 394.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