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.00157/0.00157, allocations: 198.7 kB / 17.08 MB, free: 5.066 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.504/1.504, allocations: 227.2 MB / 245 MB, free: 5.957 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000883/0.0008831, allocations: 100.1 kB / 297.3 MB, free: 5.973 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4435/0.4435, allocations: 45.23 MB / 394.6 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000326/0.0003258, allocations: 11.98 kB / 468.5 MB, free: 7.621 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5161/0.5164, allocations: 63.25 MB / 0.5193 GB, free: 37.66 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1645/0.681, allocations: 86.99 MB / 0.6042 GB, free: 452 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00031/0.6813, allocations: 67.92 kB / 0.6043 GB, free: 388 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004171/0.6856, allocations: 0.9979 MB / 0.6053 GB, free: 15.38 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.6856, allocations: 0 / 0.6053 GB, free: 15.38 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.6856, allocations: 0 / 0.6053 GB, free: 15.38 MB / 426.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.0005961/0.6862, allocations: 351.2 kB / 0.6056 GB, free: 14.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.981e-05/0.6864, allocations: 8.25 kB / 0.6056 GB, free: 14.98 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.971e-05/0.6864, allocations: 30.56 kB / 0.6056 GB, free: 14.94 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.35e-05/0.6865, allocations: 11.88 kB / 0.6056 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002563/0.6868, allocations: 182.9 kB / 0.6058 GB, free: 14.71 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.763e-05/0.6868, allocations: 8 kB / 0.6058 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.168e-05/0.6868, allocations: 11.94 kB / 0.6058 GB, free: 14.69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001724/0.687, allocations: 45.69 kB / 0.6059 GB, free: 14.64 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.6871, allocations: 0 / 0.6059 GB, free: 14.64 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.6871, allocations: 0 / 0.6059 GB, free: 14.64 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.6871, allocations: 4 kB / 0.6059 GB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.855e-05/0.6872, allocations: 15.98 kB / 0.6059 GB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008692/0.6881, allocations: 292.7 kB / 0.6062 GB, free: 14.28 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.776e-05/0.6882, allocations: 26.56 kB / 0.6062 GB, free: 14.25 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/0.6882, allocations: 0 / 0.6062 GB, free: 14.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/0.6884, allocations: 47.47 kB / 0.6062 GB, free: 14.19 MB / 426.7 MB Notification: Performance of pre-optimization done (n=3): time 2.295e-06/0.6884, allocations: 4 kB / 0.6062 GB, free: 14.18 MB / 426.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002332/0.6886, allocations: 61.58 kB / 0.6063 GB, free: 14.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.074e-05/0.6887, allocations: 51.41 kB / 0.6064 GB, free: 14.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001578/0.6889, allocations: 105.2 kB / 0.6065 GB, free: 13.94 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.6889, allocations: 25.7 kB / 0.6065 GB, free: 13.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.36e-05/0.689, allocations: 95.98 kB / 0.6066 GB, free: 13.81 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.625e-05/0.689, allocations: 11.89 kB / 0.6066 GB, free: 13.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-06/0.6891, allocations: 0 / 0.6066 GB, free: 13.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001772/0.6892, allocations: 310.8 kB / 0.6069 GB, free: 13.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.882e-05/0.6893, allocations: 8 kB / 0.6069 GB, free: 13.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.258e-05/0.6893, allocations: 25.7 kB / 0.6069 GB, free: 13.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.22e-05/0.6894, allocations: 7.938 kB / 0.6069 GB, free: 13.44 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.6894, allocations: 4 kB / 0.6069 GB, free: 13.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001378/0.6896, allocations: 49.69 kB / 0.607 GB, free: 13.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.6896, allocations: 10.81 kB / 0.607 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.6896, allocations: 0 / 0.607 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.6896, allocations: 0 / 0.607 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.999e-05/0.6897, allocations: 4 kB / 0.607 GB, free: 13.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.535e-05/0.6897, allocations: 11.92 kB / 0.607 GB, free: 13.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.504e-05/0.6898, allocations: 8.281 kB / 0.607 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.6898, allocations: 0 / 0.607 GB, free: 13.35 MB / 426.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 () * Number of clocked 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 0.0001452/0.69, allocations: 113.8 kB / 0.6071 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.243e-05/0.69, allocations: 3.938 kB / 0.6071 GB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.884e-05/0.6901, allocations: 15.83 kB / 0.6071 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.6901, allocations: 0 / 0.6071 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.6901, allocations: 0 / 0.6071 GB, free: 13.21 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.6902, allocations: 3.953 kB / 0.6071 GB, free: 13.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004524/0.6906, allocations: 310.6 kB / 0.6074 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.6906, allocations: 0 / 0.6074 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.557e-05/0.6907, allocations: 0 / 0.6074 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.355e-06/0.6907, allocations: 4 kB / 0.6074 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.6907, allocations: 4 kB / 0.6074 GB, free: 12.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.6908, allocations: 3.953 kB / 0.6074 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.6908, allocations: 0 / 0.6074 GB, free: 12.83 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.691, allocations: 151.8 kB / 0.6076 GB, free: 12.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.333e-05/0.6911, allocations: 81.14 kB / 0.6077 GB, free: 12.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.003e-05/0.6911, allocations: 8.016 kB / 0.6077 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.6912, allocations: 0 / 0.6077 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.918e-05/0.6913, allocations: 3.953 kB / 0.6077 GB, free: 12.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/0.6913, allocations: 4 kB / 0.6077 GB, free: 12.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.656e-05/0.6914, allocations: 95.2 kB / 0.6078 GB, free: 12.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6914, allocations: 0 / 0.6078 GB, free: 12.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004195/0.6919, allocations: 8 kB / 0.6078 GB, free: 12.45 MB / 426.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 () * Number of clocked 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.0006876/0.6926, allocations: 0.6813 MB / 0.6084 GB, free: 11.74 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001155/0.6927, allocations: 15.94 kB / 0.6085 GB, free: 11.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.6927, allocations: 4 kB / 0.6085 GB, free: 11.72 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 3.093e-05/0.6928, allocations: 4 kB / 0.6085 GB, free: 11.72 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.6931, allocations: 20.06 kB / 0.6085 GB, free: 11.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.6943, allocations: 0.58 MB / 0.6091 GB, free: 11.07 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.6946, allocations: 0.6926 MB / 0.6097 GB, free: 10.35 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.226e-05/0.6947, allocations: 0 / 0.6097 GB, free: 10.35 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.381e-05/0.6948, allocations: 23.7 kB / 0.6098 GB, free: 10.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.292e-06/0.6948, allocations: 0 / 0.6098 GB, free: 10.32 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01867/0.7135, allocations: 1.317 MB / 0.611 GB, free: 9.129 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00034/0.7139, allocations: 172.6 kB / 0.6112 GB, free: 8.891 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.662/2.376, allocations: 3.938 kB / 0.6112 GB, free: 8.887 MB / 426.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