Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.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.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 197.2 kB / 8.766 MB, free: 324 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009494/0.0009496, allocations: 98.12 kB / 286.7 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2131/0.2131, allocations: 45.15 MB / 383.8 MB, free: 308 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.728e-05/1.73e-05, allocations: 4 kB / 453.3 MB, free: 75.75 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1122, allocations: 63.25 MB / 0.5045 GB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4684/0.5807, allocations: 86.26 MB / 0.5887 GB, free: 15.95 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001944/0.5809, allocations: 59.28 kB / 0.5887 GB, free: 15.92 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002332/0.5833, allocations: 0.9871 MB / 0.5897 GB, free: 15.07 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5833, allocations: 0 / 0.5897 GB, free: 15.07 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.457e-06/0.5833, allocations: 5.375 kB / 0.5897 GB, free: 15.07 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.0003416/0.5836, allocations: 330.5 kB / 0.59 GB, free: 14.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.5837, allocations: 8.031 kB / 0.59 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.597e-05/0.5838, allocations: 8.531 kB / 0.59 GB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001913/0.5839, allocations: 178.4 kB / 0.5902 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.584, allocations: 4.875 kB / 0.5902 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.584, allocations: 0 / 0.5902 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.877e-05/0.5841, allocations: 11.81 kB / 0.5902 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.69e-05/0.5842, allocations: 56.17 kB / 0.5903 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.266e-06/0.5842, allocations: 0 / 0.5903 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.5842, allocations: 0 / 0.5903 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.137e-06/0.5842, allocations: 0 / 0.5903 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004617/0.5847, allocations: 263.3 kB / 0.5905 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.111e-05/0.5847, allocations: 29.94 kB / 0.5906 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.714e-05/0.5848, allocations: 8.859 kB / 0.5906 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.644e-06/0.5848, allocations: 0 / 0.5906 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.27e-05/0.5849, allocations: 51.94 kB / 0.5906 GB, free: 14.02 MB / 394.7 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.5849, allocations: 0 / 0.5906 GB, free: 14.02 MB / 394.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001166/0.585, allocations: 44.88 kB / 0.5907 GB, free: 13.97 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/0.585, allocations: 55.36 kB / 0.5907 GB, free: 13.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.433e-05/0.5851, allocations: 106.2 kB / 0.5908 GB, free: 13.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.5851, allocations: 25.7 kB / 0.5908 GB, free: 13.77 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.806e-05/0.5852, allocations: 95.55 kB / 0.5909 GB, free: 13.67 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.285e-05/0.5852, allocations: 6.719 kB / 0.5909 GB, free: 13.67 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.5852, allocations: 0 / 0.5909 GB, free: 13.67 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.5853, allocations: 314.8 kB / 0.5912 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.292e-05/0.5854, allocations: 7.188 kB / 0.5912 GB, free: 13.35 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.208e-05/0.5854, allocations: 17.5 kB / 0.5913 GB, free: 13.33 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.109e-05/0.5854, allocations: 8 kB / 0.5913 GB, free: 13.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.5854, allocations: 3.938 kB / 0.5913 GB, free: 13.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.15e-05/0.5855, allocations: 60.97 kB / 0.5913 GB, free: 13.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.5855, allocations: 4 kB / 0.5913 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.5856, allocations: 0 / 0.5913 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.5856, allocations: 0 / 0.5913 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.952e-05/0.5856, allocations: 4 kB / 0.5913 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.5856, allocations: 0 / 0.5913 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.001e-05/0.5857, allocations: 7.953 kB / 0.5914 GB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.5857, allocations: 8.016 kB / 0.5914 GB, free: 13.23 MB / 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 7.285e-05/0.5857, allocations: 108.1 kB / 0.5915 GB, free: 13.12 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 5.277e-05/0.5858, allocations: 37.64 kB / 0.5915 GB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.072e-05/0.5858, allocations: 11.89 kB / 0.5915 GB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.373e-05/0.5859, allocations: 7.594 kB / 0.5915 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-06/0.5859, allocations: 0 / 0.5915 GB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.5859, allocations: 3.953 kB / 0.5915 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.5859, allocations: 0 / 0.5915 GB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002527/0.5861, allocations: 273.2 kB / 0.5918 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.5861, allocations: 288 / 0.5918 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.145e-05/0.5862, allocations: 3.938 kB / 0.5918 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.5862, allocations: 0 / 0.5918 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.5862, allocations: 0 / 0.5918 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.117e-06/0.5862, allocations: 11.94 kB / 0.5918 GB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5862, allocations: 0 / 0.5918 GB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.5864, allocations: 144.8 kB / 0.5919 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.286e-05/0.5864, allocations: 85.08 kB / 0.592 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.251e-05/0.5864, allocations: 0 / 0.592 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.243e-05/0.5865, allocations: 0 / 0.592 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.555e-05/0.5865, allocations: 10.95 kB / 0.592 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.5866, allocations: 3.984 kB / 0.592 GB, free: 12.47 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.056e-05/0.5866, allocations: 83.3 kB / 0.5921 GB, free: 12.39 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5866, allocations: 0 / 0.5921 GB, free: 12.39 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002139/0.5868, allocations: 8 kB / 0.5921 GB, free: 12.39 MB / 394.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.0003801/0.5872, allocations: 0.6711 MB / 0.5928 GB, free: 11.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 6.961e-05/0.5873, allocations: 14.98 kB / 0.5928 GB, free: 11.68 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5873, allocations: 0 / 0.5928 GB, free: 11.68 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.802e-05/0.5873, allocations: 14.62 kB / 0.5928 GB, free: 11.67 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.5875, allocations: 18.95 kB / 0.5928 GB, free: 11.66 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003895/0.5879, allocations: 126.6 kB / 0.5929 GB, free: 11.49 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.5882, allocations: 0.6885 MB / 0.5936 GB, free: 10.78 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.055e-05/0.5882, allocations: 7.844 kB / 0.5936 GB, free: 10.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.149e-05/0.5883, allocations: 18.31 kB / 0.5936 GB, free: 10.76 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5883, allocations: 0 / 0.5936 GB, free: 10.76 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01997/0.6083, allocations: 0.912 MB / 0.5945 GB, free: 9.855 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002336/0.6086, allocations: 139.8 kB / 0.5947 GB, free: 9.664 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.555/2.163, allocations: 0 / 0.5947 GB, free: 9.664 MB / 394.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat does not exist to compare? outputFormat=mat