Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008799/0.00088, allocations: 182.3 kB / 17.44 MB, free: 4.379 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.23/1.23, allocations: 205.4 MB / 223.6 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007507/0.0007507, allocations: 83.91 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06186/0.06186, allocations: 12.2 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003852/0.0003854, allocations: 16 kB / 392.8 MB, free: 67.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06531/0.06571, allocations: 50.3 MB / 443.1 MB, free: 16.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock): time 0.001064/0.06681, allocations: 0.5648 MB / 443.6 MB, free: 16.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003031/0.06714, allocations: 143.6 kB / 443.8 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.839e-05/0.06723, allocations: 0 / 443.8 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.088e-05/0.06727, allocations: 3.938 kB / 443.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.06738, allocations: 4 kB / 443.8 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002024/0.06759, allocations: 43.89 kB / 443.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.829e-05/0.06768, allocations: 35.91 kB / 443.8 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.732e-05/0.06778, allocations: 16 kB / 443.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.137e-05/0.06784, allocations: 23.91 kB / 443.9 MB, free: 15.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.251e-05/0.06788, allocations: 15.86 kB / 443.9 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.477e-05/0.0679, allocations: 4 kB / 443.9 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.738e-06/0.06792, allocations: 0 / 443.9 MB, free: 15.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.247e-05/0.06795, allocations: 8 kB / 443.9 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.431e-05/0.06799, allocations: 49.5 kB / 444 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.196e-05/0.06806, allocations: 35.94 kB / 444 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.06807, allocations: 3.984 kB / 444 MB, free: 15.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.06808, allocations: 0 / 444 MB, free: 15.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.346e-06/0.06809, allocations: 0 / 444 MB, free: 15.71 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0002658/0.06836, allocations: 351.5 kB / 444.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.727e-05/0.0684, allocations: 8.031 kB / 444.3 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.366e-05/0.06844, allocations: 12.78 kB / 444.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.06859, allocations: 196.1 kB / 444.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.06861, allocations: 384 / 444.6 MB, free: 15.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.06863, allocations: 8.375 kB / 444.6 MB, free: 15.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002431/0.06888, allocations: 135.9 kB / 444.7 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.828e-06/0.0689, allocations: 192 / 444.7 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.809e-06/0.06891, allocations: 7.875 kB / 444.7 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.06892, allocations: 7.938 kB / 444.7 MB, free: 14.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.896e-05/0.06897, allocations: 19.98 kB / 444.7 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.777e-05/0.06907, allocations: 169.6 kB / 444.9 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001106/0.06919, allocations: 62.72 kB / 445 MB, free: 14.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.879e-05/0.06924, allocations: 40.88 kB / 445 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.268e-06/0.06926, allocations: 7.938 kB / 445 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.161e-05/0.06928, allocations: 30.56 kB / 445 MB, free: 14.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.06928, allocations: 0 / 445 MB, free: 14.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001618/0.06945, allocations: 85.53 kB / 445.1 MB, free: 14.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.444e-05/0.06947, allocations: 51.41 kB / 445.2 MB, free: 14.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.429e-05/0.06956, allocations: 143.1 kB / 445.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.883e-06/0.06958, allocations: 25.7 kB / 445.3 MB, free: 14.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.059e-05/0.0696, allocations: 88.14 kB / 445.4 MB, free: 14.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.49e-06/0.06961, allocations: 0 / 445.4 MB, free: 14.08 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.346e-06/0.06962, allocations: 4 kB / 445.4 MB, free: 14.08 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.883e-05/0.06967, allocations: 318.8 kB / 445.7 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.35e-05/0.06969, allocations: 8 kB / 445.7 MB, free: 13.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.979e-05/0.06972, allocations: 63.11 kB / 445.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.967e-05/0.06978, allocations: 66.81 kB / 445.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.06979, allocations: 0 / 445.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.561e-05/0.06989, allocations: 77.5 kB / 445.9 MB, free: 13.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.06991, allocations: 12.72 kB / 446 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.06992, allocations: 256 / 446 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/0.06994, allocations: 11.94 kB / 446 MB, free: 13.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.777e-05/0.06996, allocations: 11.92 kB / 446 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.06997, allocations: 4.156 kB / 446 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.334e-05/0.07001, allocations: 7.906 kB / 446 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.07002, allocations: 7.984 kB / 446 MB, free: 13.44 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 8 (integerConstant.y,xor.y,xor.u2,xor.u1,unitDelay1.y,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 5.829e-05/0.07009, allocations: 126.5 kB / 446.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.081e-05/0.0701, allocations: 3.906 kB / 446.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.831e-05/0.07014, allocations: 20.3 kB / 446.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.07014, allocations: 4 kB / 446.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.07015, allocations: 0 / 446.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.447e-05/0.07019, allocations: 89.09 kB / 446.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.07021, allocations: 4 kB / 446.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.572e-05/0.07023, allocations: 0 / 446.2 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.785e-06/0.07025, allocations: 3.938 kB / 446.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.055e-05/0.07034, allocations: 156.9 kB / 446.4 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001001/0.07045, allocations: 242.7 kB / 446.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.153e-05/0.07049, allocations: 23.98 kB / 446.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.884e-05/0.07053, allocations: 111.2 kB / 446.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of Backend: time 3.01e-07/0.07054, allocations: 0 / 446.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002951/0.07084, allocations: 98.27 kB / 446.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004149/0.07127, allocations: 0.6426 MB / 447.5 MB, free: 11.81 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.factor found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: periodicClock.factor (no alias) initial: 20 no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.resolution found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: periodicClock.resolution (no alias) initial: Modelica_Synchronous.Types.Resolution.ms no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.resolutionFactor found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: periodicClock.resolutionFactor (no alias) protected initial: 1000 no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for assignClock1.u found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: assignClock1.u (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for assignClock1.y found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: assignClock1.y (no alias) initial: no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for integerConstant.y found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: integerConstant.y (no alias) initial: no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.u found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:3: unitDelay1.u (no alias) initial: unitDelay1.y_start no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.y found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:4: unitDelay1.y (no alias) initial: no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for xor.u1 found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:5: xor.u1 (no alias) initial: no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for xor.u2 found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:6: xor.u2 (no alias) initial: no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for xor.y found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:7: xor.y (no alias) initial: no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for integerConstant.k found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: integerConstant.k (no alias) initial: true no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.useSolver found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: periodicClock.useSolver (no alias) initial: false no arrCref index:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.y_start found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: unitDelay1.y_start (no alias) initial: false no arrCref index:(14) [] Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: periodicClock.solverMethod (no alias) initial: "ExplicitEuler" no arrCref index:(15) [] Error: Internal error GetVarIndexListByMapping: No Element for assignClock1.u found! Error: Internal error GetVarIndexListByMapping: No Element for assignClock1.y found! Error: Internal error GetVarIndexListByMapping: No Element for integerConstant.y found! Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.u found! Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.y found! Error: Internal error GetVarIndexListByMapping: No Element for xor.u1 found! Error: Internal error GetVarIndexListByMapping: No Element for xor.u2 found! Error: Internal error GetVarIndexListByMapping: No Element for xor.y found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.factor found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.resolution found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.resolutionFactor found! Error: Internal error GetVarIndexListByMapping: No Element for integerConstant.k found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for unitDelay1.y_start found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found!