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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001227/0.001227, allocations: 96.27 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001355/0.001356, allocations: 180.7 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 223.2 MB / 241.8 MB, free: 380 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2128/0.2128, allocations: 44.23 MB / 337.1 MB, free: 2.906 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004839/0.000484, allocations: 9.438 kB / 409.6 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1348, allocations: 61.91 MB / 471.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.0009806/0.1358, allocations: 0.5146 MB / 472 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001839/0.136, allocations: 51.84 kB / 472.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.254e-05/0.1361, allocations: 4 kB / 472.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.723e-05/0.1361, allocations: 7.922 kB / 472.1 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.065e-05/0.1362, allocations: 4 kB / 472.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001207/0.1363, allocations: 15.92 kB / 472.1 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001412/0.1365, allocations: 27.91 kB / 472.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.1366, allocations: 12 kB / 472.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.682e-05/0.1366, allocations: 7.984 kB / 472.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.052e-05/0.1367, allocations: 11.88 kB / 472.2 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.1367, allocations: 4 kB / 472.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.406e-06/0.1367, allocations: 4 kB / 472.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.255e-05/0.1367, allocations: 3.984 kB / 472.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.291e-05/0.1368, allocations: 29.7 kB / 472.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.58e-05/0.1369, allocations: 24.23 kB / 472.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.1369, allocations: 0 / 472.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1369, allocations: 0 / 472.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1369, allocations: 0 / 472.3 MB, free: 12.96 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.000383/0.1373, allocations: 343.2 kB / 472.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1373, allocations: 12.03 kB / 472.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.673e-05/0.1374, allocations: 38.56 kB / 472.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.278e-05/0.1374, allocations: 7.906 kB / 472.6 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001709/0.1376, allocations: 171 kB / 472.8 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.024e-05/0.1376, allocations: 11.94 kB / 472.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.216e-05/0.1376, allocations: 3.953 kB / 472.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001165/0.1378, allocations: 53.67 kB / 472.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.1378, allocations: 0 / 472.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.1378, allocations: 3.984 kB / 472.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1378, allocations: 3.938 kB / 472.9 MB, free: 12.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.825e-05/0.1378, allocations: 12 kB / 472.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004944/0.1383, allocations: 292.8 kB / 473.2 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.263e-05/0.1384, allocations: 22.52 kB / 473.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.083e-06/0.1384, allocations: 4.062 kB / 473.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001104/0.1385, allocations: 51.41 kB / 473.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.133e-06/0.1386, allocations: 0 / 473.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.000147/0.1387, allocations: 61.58 kB / 473.3 MB, free: 11.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.597e-05/0.1387, allocations: 55.34 kB / 473.4 MB, free: 11.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.033e-05/0.1388, allocations: 114.3 kB / 473.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.1389, allocations: 25.7 kB / 473.5 MB, free: 11.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.184e-05/0.1389, allocations: 92.12 kB / 473.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.316e-05/0.1389, allocations: 4 kB / 473.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-06/0.1389, allocations: 3.938 kB / 473.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.139, allocations: 326.8 kB / 473.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.51e-05/0.1391, allocations: 3.984 kB / 473.9 MB, free: 11.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.884e-05/0.1391, allocations: 21.72 kB / 474 MB, free: 11.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.349e-05/0.1391, allocations: 8 kB / 474 MB, free: 11.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1391, allocations: 0 / 474 MB, free: 11.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.326e-05/0.1392, allocations: 57.53 kB / 474 MB, free: 10.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.1392, allocations: 4 kB / 474 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.1393, allocations: 0 / 474 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.1393, allocations: 4.031 kB / 474 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.244e-05/0.1393, allocations: 4 kB / 474 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.1393, allocations: 0 / 474 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.233e-05/0.1394, allocations: 7.984 kB / 474 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.137e-06/0.1394, allocations: 0 / 474 MB, free: 10.93 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 8.287e-05/0.1395, allocations: 126.3 kB / 474.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.085e-05/0.1395, allocations: 7.906 kB / 474.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.562e-05/0.1395, allocations: 7.906 kB / 474.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.1395, allocations: 3.938 kB / 474.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.992e-06/0.1395, allocations: 4 kB / 474.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.1395, allocations: 3.938 kB / 474.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002729/0.1398, allocations: 298.6 kB / 474.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1398, allocations: 0 / 474.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.118e-05/0.1399, allocations: 4 kB / 474.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1399, allocations: 0 / 474.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.1399, allocations: 0 / 474.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1399, allocations: 0 / 474.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1399, allocations: 0 / 474.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000136/0.14, allocations: 159.4 kB / 474.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.052e-05/0.1401, allocations: 85.05 kB / 474.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.299e-05/0.1401, allocations: 0 / 474.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.68e-05/0.1402, allocations: 0 / 474.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/0.1402, allocations: 4 kB / 474.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.1402, allocations: 432 / 474.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.673e-05/0.1403, allocations: 99.2 kB / 474.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1403, allocations: 4.062 kB / 474.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002143/0.1405, allocations: 4 kB / 474.8 MB, free: 10.04 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.0003486/0.1408, allocations: 0.6889 MB / 475.5 MB, free: 9.316 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.088e-05/0.1409, allocations: 16 kB / 475.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1409, allocations: 0 / 475.5 MB, free: 9.301 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.892e-05/0.141, allocations: 20.05 kB / 475.6 MB, free: 9.281 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001889/0.1412, allocations: 4 kB / 475.6 MB, free: 9.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006959/0.1419, allocations: 0.597 MB / 476.2 MB, free: 8.633 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.1421, allocations: 0.6887 MB / 476.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.062e-05/0.1421, allocations: 0 / 476.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.748e-05/0.1422, allocations: 19.42 kB / 476.9 MB, free: 7.898 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1422, allocations: 3.938 kB / 476.9 MB, free: 7.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01136/0.1536, allocations: 1.309 MB / 478.2 MB, free: 6.707 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002022/0.1538, allocations: 182.8 kB / 478.4 MB, free: 6.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.003, allocations: 0 / 478.4 MB, free: 6.469 MB / 350.1 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