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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001048/0.001048, allocations: 96.83 kB / 17 MB, free: 6.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001548/0.001548, allocations: 193.4 kB / 17.91 MB, free: 5.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2371/0.2371, allocations: 45.92 MB / 344.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002859/0.000286, allocations: 11.94 kB / 418.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1463, allocations: 63.47 MB / 481.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001214/0.1476, allocations: 0.5179 MB / 482.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002048/0.1478, allocations: 43.89 kB / 482.2 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.942e-05/0.1479, allocations: 4 kB / 482.2 MB, free: 4.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.148, allocations: 11.88 kB / 482.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.627e-05/0.148, allocations: 3.938 kB / 482.2 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001293/0.1482, allocations: 15.98 kB / 482.2 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.1483, allocations: 31.92 kB / 482.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.1484, allocations: 15.97 kB / 482.3 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.008e-05/0.1485, allocations: 11.94 kB / 482.3 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.868e-05/0.1485, allocations: 7.922 kB / 482.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.438e-05/0.1485, allocations: 0 / 482.3 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.45e-05/0.1486, allocations: 4 kB / 482.3 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.58e-05/0.1486, allocations: 3.984 kB / 482.3 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.772e-05/0.1486, allocations: 37.64 kB / 482.3 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.97e-05/0.1487, allocations: 23.95 kB / 482.4 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1488, allocations: 4 kB / 482.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1488, allocations: 0 / 482.4 MB, free: 4.539 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1488, allocations: 0 / 482.4 MB, free: 4.539 MB / 350.1 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.0004513/0.1492, allocations: 335.5 kB / 482.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.1493, allocations: 12.03 kB / 482.7 MB, free: 4.152 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.607e-05/0.1493, allocations: 34.56 kB / 482.7 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.091e-05/0.1494, allocations: 7.906 kB / 482.8 MB, free: 4.102 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001961/0.1496, allocations: 175 kB / 482.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.1496, allocations: 4 kB / 482.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.199e-05/0.1496, allocations: 4 kB / 482.9 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001527/0.1498, allocations: 53.62 kB / 483 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1498, allocations: 0 / 483 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.1498, allocations: 0 / 483 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.1498, allocations: 0 / 483 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.971e-05/0.1499, allocations: 19.97 kB / 483 MB, free: 3.805 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005548/0.1504, allocations: 300.6 kB / 483.3 MB, free: 3.461 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.231e-05/0.1505, allocations: 22.58 kB / 483.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.006e-05/0.1505, allocations: 8.922 kB / 483.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.1506, allocations: 0 / 483.3 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001061/0.1507, allocations: 51.41 kB / 483.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1507, allocations: 0 / 483.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001581/0.1508, allocations: 61.48 kB / 483.4 MB, free: 3.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.1509, allocations: 63.28 kB / 483.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.151, allocations: 114 kB / 483.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.151, allocations: 29.7 kB / 483.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.902e-05/0.1511, allocations: 88.12 kB / 483.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.308e-05/0.1511, allocations: 7.906 kB / 483.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.474e-06/0.1511, allocations: 0 / 483.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.1513, allocations: 314.8 kB / 484 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.803e-05/0.1513, allocations: 7.984 kB / 484 MB, free: 2.633 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.563e-05/0.1513, allocations: 21.72 kB / 484.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.181e-05/0.1514, allocations: 4 kB / 484.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1514, allocations: 0 / 484.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.152e-05/0.1515, allocations: 61.86 kB / 484.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.1515, allocations: 4 kB / 484.1 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.1515, allocations: 7.984 kB / 484.1 MB, free: 2.523 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.1515, allocations: 3.953 kB / 484.1 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.037e-05/0.1515, allocations: 4 kB / 484.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.1516, allocations: 4.031 kB / 484.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.108e-05/0.1516, allocations: 4 kB / 484.2 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.1516, allocations: 7.938 kB / 484.2 MB, free: 2.5 MB / 350.1 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 9.618e-05/0.1517, allocations: 113.8 kB / 484.3 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.056e-05/0.1517, allocations: 7.906 kB / 484.3 MB, free: 2.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.317e-05/0.1518, allocations: 3.906 kB / 484.3 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.1518, allocations: 4 kB / 484.3 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.1518, allocations: 3.953 kB / 484.3 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.1518, allocations: 4 kB / 484.3 MB, free: 2.355 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003016/0.1521, allocations: 302.5 kB / 484.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1521, allocations: 0 / 484.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.128e-05/0.1521, allocations: 3.938 kB / 484.6 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1522, allocations: 0 / 484.6 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.1522, allocations: 3.953 kB / 484.6 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1522, allocations: 4 kB / 484.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1522, allocations: 0 / 484.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001536/0.1523, allocations: 151.9 kB / 484.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.012e-05/0.1524, allocations: 81.02 kB / 484.8 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.1524, allocations: 0 / 484.8 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.127e-05/0.1525, allocations: 11.92 kB / 484.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.329e-05/0.1525, allocations: 3.938 kB / 484.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-06/0.1525, allocations: 0 / 484.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.558e-05/0.1526, allocations: 95.27 kB / 484.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.528e-06/0.1526, allocations: 0 / 484.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002527/0.1529, allocations: 16 kB / 485 MB, free: 1.605 MB / 350.1 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.0004799/0.1534, allocations: 0.6739 MB / 485.6 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.365e-05/0.1534, allocations: 19.94 kB / 485.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1535, allocations: 0 / 485.7 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.023e-05/0.1535, allocations: 7.984 kB / 485.7 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.1538, allocations: 20.02 kB / 485.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006965/0.1545, allocations: 443.3 kB / 486.1 MB, free: 380 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.1548, allocations: 0.6909 MB / 486.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.532e-05/0.1548, allocations: 4.328 kB / 486.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.698e-05/0.1549, allocations: 11.44 kB / 486.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1549, allocations: 0 / 486.8 MB, free: 15.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01278/0.1677, allocations: 1.33 MB / 488.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001827/0.1679, allocations: 180.3 kB / 488.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.824/1.992, allocations: 4.062 kB / 488.3 MB, free: 14.19 MB / 366.1 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