Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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) 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(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008717/0.0008718, allocations: 95.39 kB / 16.95 MB, free: 5.953 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.0008999/0.0009, allocations: 181.5 kB / 17.84 MB, free: 5.617 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.434/1.434, allocations: 223.3 MB / 241.9 MB, free: 14.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002808/0.0002808, allocations: 7.938 kB / 301.5 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1141, allocations: 50.42 MB / 351.9 MB, free: 3.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.001899/0.1161, allocations: 1.284 MB / 353.2 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006922/0.1168, allocations: 427.4 kB / 353.6 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.425e-05/0.1169, allocations: 0 / 353.6 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.248e-05/0.1169, allocations: 7.922 kB / 353.6 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001444/0.1171, allocations: 11.94 kB / 353.6 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.1173, allocations: 43.89 kB / 353.6 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001133/0.1174, allocations: 59.83 kB / 353.7 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.088e-05/0.1175, allocations: 4 kB / 353.7 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001101/0.1176, allocations: 27.86 kB / 353.7 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.809e-05/0.1177, allocations: 35.83 kB / 353.8 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.629e-05/0.1177, allocations: 0 / 353.8 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.389e-05/0.1177, allocations: 8 kB / 353.8 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.317e-05/0.1178, allocations: 7.984 kB / 353.8 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.635e-05/0.1178, allocations: 37.64 kB / 353.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.412e-05/0.1179, allocations: 39.91 kB / 353.9 MB, free: 1.77 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.1179, allocations: 0 / 353.9 MB, free: 1.77 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1179, allocations: 0 / 353.9 MB, free: 1.77 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.529e-06/0.1179, allocations: 0 / 353.9 MB, free: 1.77 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005198/0.1184, allocations: 363.4 kB / 354.2 MB, free: 1.367 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.159e-05/0.1185, allocations: 12.03 kB / 354.2 MB, free: 1.355 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.005e-05/0.1185, allocations: 15.84 kB / 354.2 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002067/0.1188, allocations: 190.8 kB / 354.4 MB, free: 1.113 MB / 286.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001444/0.1189, allocations: 37.64 kB / 354.5 MB, free: 1.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.1189, allocations: 4 kB / 354.5 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003706/0.1193, allocations: 164.9 kB / 354.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.1193, allocations: 0 / 354.6 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/0.1193, allocations: 7.953 kB / 354.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.002e-06/0.1194, allocations: 0 / 354.6 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001231/0.1195, allocations: 39.91 kB / 354.7 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002301/0.1197, allocations: 174.5 kB / 354.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.1201, allocations: 174.4 kB / 355 MB, free: 420 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.519e-05/0.1202, allocations: 41.7 kB / 355.1 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.453e-05/0.1202, allocations: 4 kB / 355.1 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.1202, allocations: 38.56 kB / 355.1 MB, free: 320 kB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.1203, allocations: 0 / 355.1 MB, free: 320 kB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003494/0.1206, allocations: 121.5 kB / 355.2 MB, free: 192 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.985e-05/0.1207, allocations: 89.06 kB / 355.3 MB, free: 84 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.1208, allocations: 121.1 kB / 355.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.1208, allocations: 29.83 kB / 355.5 MB, free: 15.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.171e-05/0.1209, allocations: 92.12 kB / 355.5 MB, free: 15.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.1209, allocations: 7.906 kB / 355.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-06/0.1209, allocations: 0 / 355.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.1211, allocations: 318.8 kB / 355.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.182e-05/0.1211, allocations: 16 kB / 355.9 MB, free: 15.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.858e-05/0.1212, allocations: 69.92 kB / 355.9 MB, free: 15.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.766e-05/0.1213, allocations: 20 kB / 356 MB, free: 15.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1213, allocations: 4 kB / 356 MB, free: 15.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001887/0.1215, allocations: 101.5 kB / 356.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.1215, allocations: 12.06 kB / 356.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.1215, allocations: 4 kB / 356.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.1216, allocations: 7.938 kB / 356.1 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.793e-05/0.1216, allocations: 20.2 kB / 356.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.307e-06/0.1217, allocations: 3.953 kB / 356.1 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.237e-05/0.1217, allocations: 11.92 kB / 356.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.1217, allocations: 4 kB / 356.1 MB, free: 15.2 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sine.startOutput,$CLKPRE.sine.startOutput,sine.counter,$CLKPRE.sine.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.startOutput,sine.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001104/0.1219, allocations: 129.8 kB / 356.3 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001109/0.122, allocations: 69.59 kB / 356.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.409e-05/0.122, allocations: 12.36 kB / 356.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.122, allocations: 4 kB / 356.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.122, allocations: 320 / 356.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1221, allocations: 7.953 kB / 356.3 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001352/0.1222, allocations: 177.6 kB / 356.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1222, allocations: 0 / 356.5 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.462e-05/0.1223, allocations: 15.98 kB / 356.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1223, allocations: 0 / 356.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.1223, allocations: 0 / 356.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.487e-06/0.1223, allocations: 4 kB / 356.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1223, allocations: 3.938 kB / 356.5 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002348/0.1226, allocations: 133.8 kB / 356.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.108e-05/0.1226, allocations: 89 kB / 356.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.539e-05/0.1227, allocations: 4 kB / 356.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.176e-05/0.1227, allocations: 4 kB / 356.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/0.1228, allocations: 0 / 356.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.1228, allocations: 11.98 kB / 356.8 MB, free: 14.44 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.741e-05/0.1229, allocations: 99.27 kB / 356.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1229, allocations: 0 / 356.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002034/0.1231, allocations: 8 kB / 356.9 MB, free: 14.34 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.counter,sine.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0001461/0.1232, allocations: 99.25 kB / 357 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002108/0.1234, allocations: 64.22 kB / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.1235, allocations: 4.062 kB / 357 MB, free: 14.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.689e-05/0.1235, allocations: 11.94 kB / 357.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007226/0.1242, allocations: 0.718 MB / 357.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004312/0.1247, allocations: 219.2 kB / 358 MB, free: 13.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003246/0.125, allocations: 0.6965 MB / 358.7 MB, free: 12.44 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/0.1251, allocations: 11.44 kB / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1251, allocations: 0 / 358.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of Templates: time 0.002407/0.1275, allocations: 0.9469 MB / 359.6 MB, free: 11.49 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.makefile make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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 OMCppModelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSineCalcHelperMain.o OMCppModelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSineCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppModelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSineCalcHelperMain.o] Error 1