Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",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.001123/0.001123, allocations: 179.6 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.503/1.503, allocations: 221.3 MB / 236 MB, free: 2.965 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.000869/0.0008688, allocations: 92.03 kB / 287 MB, free: 248 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.2658/0.2658, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.415e-05/3.426e-05, allocations: 224 / 451.9 MB, free: 9.367 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.1498, allocations: 61.92 MB / 0.5018 GB, free: 11.38 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4385/0.5884, allocations: 85.87 MB / 0.5856 GB, free: 3.387 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.5887, allocations: 63.31 kB / 0.5857 GB, free: 3.328 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002602/0.5913, allocations: 0.999 MB / 0.5867 GB, free: 2.34 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.5914, allocations: 0 / 0.5867 GB, free: 2.34 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.024e-05/0.5914, allocations: 0 / 0.5867 GB, free: 2.34 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003913/0.5918, allocations: 342.5 kB / 0.587 GB, free: 1.961 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.5918, allocations: 8.031 kB / 0.587 GB, free: 1.953 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.64e-05/0.5919, allocations: 42.5 kB / 0.5871 GB, free: 1.902 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.061e-05/0.5919, allocations: 3.906 kB / 0.5871 GB, free: 1.898 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.5922, allocations: 175.1 kB / 0.5872 GB, free: 1.688 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.5922, allocations: 0 / 0.5872 GB, free: 1.688 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.65e-05/0.5922, allocations: 7.953 kB / 0.5872 GB, free: 1.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000124/0.5923, allocations: 53.62 kB / 0.5873 GB, free: 1.621 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.5924, allocations: 0 / 0.5873 GB, free: 1.621 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.5924, allocations: 3.984 kB / 0.5873 GB, free: 1.617 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.5924, allocations: 4 kB / 0.5873 GB, free: 1.613 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.751e-05/0.5925, allocations: 16 kB / 0.5873 GB, free: 1.598 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005227/0.593, allocations: 288.7 kB / 0.5876 GB, free: 1.266 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.077e-05/0.5931, allocations: 30.52 kB / 0.5876 GB, free: 1.227 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.856e-05/0.5931, allocations: 4.859 kB / 0.5876 GB, free: 1.219 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.997e-06/0.5931, allocations: 8.062 kB / 0.5876 GB, free: 1.211 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.368e-05/0.5932, allocations: 47.41 kB / 0.5877 GB, free: 1.152 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 1.613e-06/0.5932, allocations: 0 / 0.5877 GB, free: 1.152 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.00013/0.5934, allocations: 53.53 kB / 0.5877 GB, free: 1.094 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.5934, allocations: 51.41 kB / 0.5878 GB, free: 1.031 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.717e-05/0.5935, allocations: 104.1 kB / 0.5879 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.5935, allocations: 33.7 kB / 0.5879 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.368e-05/0.5936, allocations: 92.12 kB / 0.588 GB, free: 0.7891 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.5936, allocations: 7.844 kB / 0.588 GB, free: 0.7812 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.284e-06/0.5936, allocations: 4 kB / 0.588 GB, free: 0.7773 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.5938, allocations: 318.8 kB / 0.5883 GB, free: 468 kB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.47e-05/0.5938, allocations: 4 kB / 0.5883 GB, free: 464 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.589e-05/0.5938, allocations: 21.7 kB / 0.5883 GB, free: 436 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.929e-05/0.5939, allocations: 4 kB / 0.5883 GB, free: 432 kB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5939, allocations: 4 kB / 0.5883 GB, free: 428 kB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.945e-05/0.594, allocations: 57.53 kB / 0.5884 GB, free: 364 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.594, allocations: 5.094 kB / 0.5884 GB, free: 360 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.594, allocations: 4.375 kB / 0.5884 GB, free: 356 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.269e-05/0.594, allocations: 0 / 0.5884 GB, free: 356 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.371e-05/0.5941, allocations: 8 kB / 0.5884 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.5941, allocations: 0 / 0.5884 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.758e-05/0.5941, allocations: 3.938 kB / 0.5884 GB, free: 344 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.961e-06/0.5941, allocations: 4 kB / 0.5884 GB, free: 340 kB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,greaterEqualThreshold.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.354e-05/0.5942, allocations: 112.9 kB / 0.5885 GB, free: 220 kB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.198e-05/0.5942, allocations: 7.906 kB / 0.5885 GB, free: 212 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.219e-05/0.5943, allocations: 12.02 kB / 0.5885 GB, free: 188 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.5943, allocations: 0 / 0.5885 GB, free: 188 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.5943, allocations: 0 / 0.5885 GB, free: 188 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.5943, allocations: 4 kB / 0.5885 GB, free: 184 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002964/0.5946, allocations: 298.7 kB / 0.5888 GB, free: 15.83 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.5946, allocations: 0.875 kB / 0.5888 GB, free: 15.83 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.107e-05/0.5946, allocations: 11.83 kB / 0.5888 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.5947, allocations: 0 / 0.5888 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-06/0.5947, allocations: 0 / 0.5888 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.5947, allocations: 3.938 kB / 0.5888 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.5947, allocations: 8 kB / 0.5889 GB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001462/0.5948, allocations: 147.5 kB / 0.589 GB, free: 15.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.841e-05/0.5949, allocations: 81.02 kB / 0.5891 GB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.5949, allocations: 0 / 0.5891 GB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.918e-05/0.595, allocations: 12.08 kB / 0.5891 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.057e-05/0.595, allocations: 0 / 0.5891 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-06/0.595, allocations: 0 / 0.5891 GB, free: 15.54 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.522e-05/0.5951, allocations: 91.28 kB / 0.5892 GB, free: 15.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5951, allocations: 0 / 0.5892 GB, free: 15.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002072/0.5953, allocations: 8 kB / 0.5892 GB, free: 15.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000411/0.5957, allocations: 0.6889 MB / 0.5899 GB, free: 14.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 7.425e-05/0.5958, allocations: 16 kB / 0.5899 GB, free: 14.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.5958, allocations: 0 / 0.5899 GB, free: 14.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.033e-05/0.5958, allocations: 11.94 kB / 0.5899 GB, free: 14.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.596, allocations: 11.98 kB / 0.5899 GB, free: 14.69 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003831/0.5964, allocations: 129.5 kB / 0.59 GB, free: 14.53 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002822/0.5967, allocations: 0.685 MB / 0.5907 GB, free: 13.82 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.456e-05/0.5968, allocations: 11.98 kB / 0.5907 GB, free: 13.81 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.905e-05/0.5968, allocations: 15.38 kB / 0.5907 GB, free: 13.79 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5968, allocations: 4.219 kB / 0.5907 GB, free: 13.79 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01202/0.6088, allocations: 1.297 MB / 0.592 GB, free: 12.61 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001838/0.6091, allocations: 151.6 kB / 0.5921 GB, free: 12.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.524/2.134, allocations: 7.938 kB / 0.5921 GB, free: 12.38 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat