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: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001031/0.001031, allocations: 92.56 kB / 17.63 MB, free: 5.719 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.0009867/0.0009867, allocations: 179.5 kB / 18.52 MB, free: 5.172 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.62/1.62, allocations: 223.3 MB / 242.5 MB, free: 14.64 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.23/0.23, allocations: 44.22 MB / 337.9 MB, free: 2.602 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.000363, allocations: 8 kB / 410.3 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1522, allocations: 61.92 MB / 472.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001306/0.1536, allocations: 0.5145 MB / 472.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000231/0.1538, allocations: 47.84 kB / 472.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.364e-05/0.1539, allocations: 0 / 472.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.1541, allocations: 7.938 kB / 472.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.044e-05/0.1541, allocations: 7.984 kB / 472.8 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001304/0.1542, allocations: 8 kB / 472.8 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000135/0.1544, allocations: 39.84 kB / 472.8 MB, free: 13.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.1545, allocations: 12 kB / 472.8 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.702e-05/0.1545, allocations: 11.86 kB / 472.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.267e-05/0.1546, allocations: 11.92 kB / 472.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.1546, allocations: 0 / 472.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.412e-05/0.1546, allocations: 4 kB / 472.8 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.819e-05/0.1547, allocations: 7.938 kB / 472.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.14e-05/0.1547, allocations: 33.7 kB / 472.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.433e-05/0.1548, allocations: 23.95 kB / 472.9 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.1548, allocations: 0 / 472.9 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.1548, allocations: 0 / 472.9 MB, free: 13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.1548, allocations: 0 / 472.9 MB, free: 13 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.0004876/0.1553, allocations: 339.5 kB / 473.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.1554, allocations: 8.031 kB / 473.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.983e-05/0.1554, allocations: 4 kB / 473.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002259/0.1557, allocations: 182.9 kB / 473.4 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.1557, allocations: 7.984 kB / 473.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.071e-05/0.1557, allocations: 4 kB / 473.4 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000137/0.1559, allocations: 53.62 kB / 473.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.1559, allocations: 4 kB / 473.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.1559, allocations: 0 / 473.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.1559, allocations: 0 / 473.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.207e-05/0.156, allocations: 15.98 kB / 473.5 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005802/0.1565, allocations: 300.6 kB / 473.8 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.719e-05/0.1566, allocations: 22.58 kB / 473.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.216e-05/0.1566, allocations: 8.922 kB / 473.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.454e-06/0.1567, allocations: 0 / 473.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001398/0.1568, allocations: 51.34 kB / 473.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.1568, allocations: 0 / 473.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001619/0.157, allocations: 57.59 kB / 473.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/0.157, allocations: 51.41 kB / 474 MB, free: 11.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001081/0.1572, allocations: 114 kB / 474.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.1572, allocations: 30.08 kB / 474.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.733e-05/0.1573, allocations: 92.12 kB / 474.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.1573, allocations: 3.906 kB / 474.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-06/0.1573, allocations: 0 / 474.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.1575, allocations: 326.7 kB / 474.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.684e-05/0.1575, allocations: 19.86 kB / 474.6 MB, free: 11.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.91e-05/0.1576, allocations: 17.72 kB / 474.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.951e-05/0.1576, allocations: 4 kB / 474.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1576, allocations: 0 / 474.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001228/0.1578, allocations: 61.53 kB / 474.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.216e-05/0.1578, allocations: 4 kB / 474.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.1578, allocations: 0 / 474.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.1578, allocations: 0 / 474.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.07e-05/0.1579, allocations: 8.031 kB / 474.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.1579, allocations: 0 / 474.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.164e-05/0.158, allocations: 4 kB / 474.7 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.158, allocations: 0 / 474.7 MB, free: 11.01 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 0.0001292/0.1581, allocations: 122.3 kB / 474.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.093e-05/0.1581, allocations: 4.328 kB / 474.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.055e-05/0.1582, allocations: 3.906 kB / 474.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1582, allocations: 0 / 474.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/0.1582, allocations: 3.984 kB / 474.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.1582, allocations: 4 kB / 474.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004201/0.1586, allocations: 310.4 kB / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1586, allocations: 0 / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.751e-05/0.1587, allocations: 8 kB / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.1587, allocations: 0 / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.328e-05/0.1587, allocations: 4 kB / 475.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1587, allocations: 0 / 475.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1587, allocations: 0 / 475.1 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002253/0.159, allocations: 159.4 kB / 475.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.981e-05/0.159, allocations: 85.05 kB / 475.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.1591, allocations: 0 / 475.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.375e-05/0.1591, allocations: 0 / 475.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.43e-05/0.1592, allocations: 4 kB / 475.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.1592, allocations: 0 / 475.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.002e-05/0.1593, allocations: 91.27 kB / 475.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1593, allocations: 288 / 475.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002447/0.1595, allocations: 16.06 kB / 475.5 MB, free: 10.11 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.0001597/0.1597, allocations: 91.25 kB / 475.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001262/0.1598, allocations: 19.92 kB / 475.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1598, allocations: 7.875 kB / 475.6 MB, free: 9.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.2e-05/0.1599, allocations: 8 kB / 475.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003291/0.1602, allocations: 22.42 kB / 475.6 MB, free: 9.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003428/0.1606, allocations: 176.4 kB / 475.8 MB, free: 9.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.1608, allocations: 0.6809 MB / 476.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.621e-05/0.1609, allocations: 11.44 kB / 476.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1609, allocations: 0 / 476.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of Templates: time 0.00241/0.1633, allocations: 0.7198 MB / 477.2 MB, free: 8.312 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile clang++ NOTFOUND -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegratorCalcHelperMain.o OMCppModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegratorCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegratorCalcHelperMain.o] Error 1