Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") translateModel(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009832/0.0009831, allocations: 100.2 kB / 15.71 MB, free: 452 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001447/0.001448, allocations: 177 kB / 16.58 MB, free: 6.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.027/2.027, allocations: 205.4 MB / 222.8 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05624/0.05624, allocations: 10.74 MB / 281.8 MB, free: 10.57 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005679/0.0005683, allocations: 18.97 kB / 342.3 MB, free: 23.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1198, allocations: 50.01 MB / 392.3 MB, free: 5.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing): time 0.003476/0.1233, allocations: 1.781 MB / 394.1 MB, free: 3.988 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002322/0.1257, allocations: 1.163 MB / 395.2 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001716/0.1259, allocations: 0 / 395.2 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008389/0.1268, allocations: 247.3 kB / 395.5 MB, free: 2.574 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000433/0.1272, allocations: 155.5 kB / 395.6 MB, free: 2.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008174/0.128, allocations: 275.5 kB / 395.9 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004463/0.1285, allocations: 339 kB / 396.2 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.1287, allocations: 57.12 kB / 396.3 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.1289, allocations: 143.3 kB / 396.4 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.1291, allocations: 131.4 kB / 396.5 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.283e-05/0.1292, allocations: 8 kB / 396.5 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001989/0.1294, allocations: 99.91 kB / 396.6 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.912e-05/0.1295, allocations: 59.75 kB / 396.7 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.53e-05/0.1296, allocations: 73.52 kB / 396.8 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003751/0.1299, allocations: 279.6 kB / 397 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.13, allocations: 4 kB / 397 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.13, allocations: 0 / 397 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.13, allocations: 4 kB / 397 MB, free: 0.9727 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001142/0.1311, allocations: 0.6333 MB / 397.7 MB, free: 288 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.1312, allocations: 16.03 kB / 397.7 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.956e-05/0.1313, allocations: 39.52 kB / 397.7 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004985/0.1318, allocations: 311.1 kB / 398 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.244e-05/0.1318, allocations: 12 kB / 398.1 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.135e-05/0.1319, allocations: 15.92 kB / 398.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004174/0.1323, allocations: 196.1 kB / 398.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1323, allocations: 4 kB / 398.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.616e-05/0.1324, allocations: 11.95 kB / 398.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.1324, allocations: 4 kB / 398.3 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002408/0.1326, allocations: 91.94 kB / 398.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.1337, allocations: 0.5429 MB / 398.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004444/0.1342, allocations: 170.8 kB / 399.1 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002252/0.1344, allocations: 68.83 kB / 399.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.057e-05/0.1345, allocations: 3.938 kB / 399.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003729/0.1349, allocations: 177.5 kB / 399.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.483e-06/0.1349, allocations: 0 / 399.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.0006927/0.1356, allocations: 320 kB / 399.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.641e-05/0.1357, allocations: 148.4 kB / 399.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004294/0.1361, allocations: 381.6 kB / 400.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.107e-05/0.1362, allocations: 33.7 kB / 400.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.1363, allocations: 168.4 kB / 400.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.196e-05/0.1364, allocations: 55.28 kB / 400.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/0.1364, allocations: 4 kB / 400.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.1366, allocations: 338.8 kB / 400.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001725/0.1368, allocations: 59.97 kB / 400.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002636/0.1371, allocations: 183.3 kB / 401 MB, free: 12.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002103/0.1373, allocations: 87.89 kB / 401.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.1373, allocations: 0 / 401.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005125/0.1379, allocations: 273.2 kB / 401.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.1379, allocations: 14.64 kB / 401.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.378e-06/0.1379, allocations: 4 kB / 401.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.1379, allocations: 4 kB / 401.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.1381, allocations: 31.92 kB / 401.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.1381, allocations: 4 kB / 401.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001472/0.1383, allocations: 39.67 kB / 401.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.1383, allocations: 20.03 kB / 401.4 MB, free: 12.26 MB / 302.1 MB Warning: Assuming fixed start value for the following 6 variables: equal.y:DISCRETE(flow=false fixed = true ) "output" type: Boolean counter.CUd:DISCRETE(fixed = true ) type: Boolean counter.CDd:DISCRETE(fixed = true ) type: Boolean counter.Sd:DISCRETE(fixed = true ) type: Boolean counter.Q:DISCRETE(flow=false fixed = true ) "status of the counter (1: counting, 0: not counting)" type: Boolean counter.Value:DISCRETE(start = 0 fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.equal.y,equal.y,$PRE.counter.CUd,counter.CUd,$PRE.counter.CDd,counter.CDd,$PRE.counter.Sd,counter.Sd,$PRE.counter.Q,counter.Q,$PRE.counter.Value,counter.Value,$whenCondition4,$whenCondition3,$PRE.reset.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.set.combiTimeTable.nextTimeEvent,$whenCondition1,reset.y,reset.combiTimeTable.nextTimeEvent,$PRE.reset.combiTimeTable.nextTimeEventScaled,reset.combiTimeTable.nextTimeEventScaled,set.y,set.combiTimeTable.nextTimeEvent,$PRE.set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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.0002524/0.1386, allocations: 181.2 kB / 401.6 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.394e-05/0.1386, allocations: 35.58 kB / 401.7 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.7e-05/0.1387, allocations: 35.28 kB / 401.7 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1387, allocations: 4 kB / 401.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1387, allocations: 0 / 401.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1387, allocations: 128 / 401.7 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003827/0.1391, allocations: 313.4 kB / 402 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.1391, allocations: 0 / 402 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.147e-05/0.1392, allocations: 19.92 kB / 402 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1392, allocations: 3.953 kB / 402 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/0.1392, allocations: 11.98 kB / 402 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.1392, allocations: 0 / 402 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1393, allocations: 0 / 402 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000529/0.1398, allocations: 292.6 kB / 402.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.1399, allocations: 116.6 kB / 402.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.658e-05/0.14, allocations: 8 kB / 402.4 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.1401, allocations: 27.97 kB / 402.5 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/0.1402, allocations: 11.98 kB / 402.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.1402, allocations: 15.98 kB / 402.5 MB, free: 11.1 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002833/0.1405, allocations: 271.2 kB / 402.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1405, allocations: 0 / 402.8 MB, free: 10.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003677/0.1409, allocations: 75.91 kB / 402.8 MB, free: 10.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,counter.Q,counter.Value,counter.CUd,counter.CDd,counter.Sd,set.y,set.combiTimeTable.nextTimeEvent,set.combiTimeTable.nextTimeEventScaled,reset.y,reset.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEventScaled,equal.y) * Number of discrete states: 8 (counter.Value,counter.Sd,counter.CUd,counter.CDd,reset.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEventScaled,set.combiTimeTable.nextTimeEvent,reset.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.001048/0.1419, allocations: 471.5 kB / 403.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000438/0.1424, allocations: 187.7 kB / 403.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1424, allocations: 4 kB / 403.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.1426, allocations: 84.59 kB / 403.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000431/0.143, allocations: 81.25 kB / 403.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009317/0.144, allocations: 0.5753 MB / 404.2 MB, free: 9.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000422/0.1444, allocations: 0.7758 MB / 405 MB, free: 8.648 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.893e-05/0.1445, allocations: 31.42 kB / 405 MB, free: 8.621 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1445, allocations: 4 kB / 405 MB, free: 8.617 MB / 302.1 MB Notification: Performance of Templates: time 0.007464/0.152, allocations: 4.618 MB / 409.6 MB, free: 3.988 MB / 302.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.makefile make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossing.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 OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossingCalcHelperMain.o OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossingCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppIndustrialControlSystems_IndustrialControlSystems.Logical.Counter.Examples.countZeroCrossingCalcHelperMain.o] Error 1