Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000865/0.0008651, allocations: 177.8 kB / 17.44 MB, free: 4.375 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.207/1.207, allocations: 205.4 MB / 223.6 MB, free: 8.934 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.0007027/0.0007026, allocations: 94.23 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06227/0.06227, allocations: 12.19 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003714/0.0003715, allocations: 16 kB / 392.8 MB, free: 67.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06115/0.06154, allocations: 50.29 MB / 443 MB, free: 16.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.001296/0.06287, allocations: 1.205 MB / 444.3 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003249/0.06321, allocations: 167.5 kB / 444.4 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.7e-05/0.06329, allocations: 4 kB / 444.4 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.327e-05/0.06334, allocations: 0 / 444.4 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.695e-05/0.06344, allocations: 3.938 kB / 444.4 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001763/0.06363, allocations: 47.83 kB / 444.5 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.096e-05/0.06371, allocations: 31.92 kB / 444.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.153e-05/0.06379, allocations: 11.98 kB / 444.5 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.554e-05/0.06385, allocations: 11.94 kB / 444.5 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.464e-05/0.06389, allocations: 19.86 kB / 444.5 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.282e-05/0.06391, allocations: 0 / 444.5 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.829e-06/0.06392, allocations: 8 kB / 444.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.97e-05/0.06396, allocations: 7.984 kB / 444.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.933e-05/0.06399, allocations: 49.5 kB / 444.6 MB, free: 15.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.115e-05/0.06405, allocations: 27.95 kB / 444.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.06406, allocations: 0 / 444.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.06406, allocations: 0 / 444.6 MB, free: 15.05 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.306e-06/0.06407, allocations: 0 / 444.6 MB, free: 15.05 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0002961/0.06437, allocations: 359.4 kB / 445 MB, free: 14.65 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.06441, allocations: 16.03 kB / 445 MB, free: 14.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.783e-05/0.06445, allocations: 4.844 kB / 445 MB, free: 14.63 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.06458, allocations: 192.2 kB / 445.2 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.088e-05/0.0646, allocations: 8.312 kB / 445.2 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-06/0.06462, allocations: 8.375 kB / 445.2 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002263/0.06485, allocations: 121.6 kB / 445.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.06487, allocations: 4.172 kB / 445.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.303e-06/0.06488, allocations: 3.938 kB / 445.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.06489, allocations: 4 kB / 445.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.06e-05/0.06496, allocations: 23.92 kB / 445.4 MB, free: 14.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002002/0.06517, allocations: 265.7 kB / 445.6 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001436/0.06533, allocations: 142.2 kB / 445.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.502e-05/0.06539, allocations: 29.77 kB / 445.8 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.335e-05/0.06541, allocations: 4 kB / 445.8 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.089e-05/0.06543, allocations: 38.5 kB / 445.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.132e-06/0.06544, allocations: 0 / 445.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.000197/0.06564, allocations: 81.61 kB / 445.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.608e-05/0.06566, allocations: 81.23 kB / 446 MB, free: 13.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.695e-05/0.06575, allocations: 139 kB / 446.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.232e-06/0.06576, allocations: 25.7 kB / 446.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.387e-05/0.06579, allocations: 88.14 kB / 446.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.743e-06/0.0658, allocations: 3.938 kB / 446.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-06/0.06581, allocations: 0 / 446.2 MB, free: 13.19 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.238e-05/0.06585, allocations: 310.8 kB / 446.5 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.597e-05/0.06589, allocations: 15.98 kB / 446.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.449e-05/0.06593, allocations: 39.36 kB / 446.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.711e-05/0.066, allocations: 47.42 kB / 446.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.06601, allocations: 0 / 446.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001059/0.06612, allocations: 81.44 kB / 446.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/0.06614, allocations: 4 kB / 446.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.06615, allocations: 0 / 446.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.06617, allocations: 4 kB / 446.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.085e-05/0.06623, allocations: 16.11 kB / 446.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.06624, allocations: 0 / 446.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.213e-05/0.06627, allocations: 7.906 kB / 446.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.72e-06/0.06629, allocations: 4 kB / 446.8 MB, free: 12.63 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample.y,assignClock.y,assignClock.u,step.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 5.016e-05/0.06634, allocations: 122.5 kB / 446.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.552e-05/0.06637, allocations: 11.88 kB / 446.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.199e-05/0.0664, allocations: 12.25 kB / 446.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.06641, allocations: 0 / 446.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.06641, allocations: 4 kB / 446.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.02e-05/0.06645, allocations: 89 kB / 447 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.173e-05/0.06647, allocations: 4 kB / 447 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.315e-05/0.06653, allocations: 4 kB / 447 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.466e-05/0.06657, allocations: 3.984 kB / 447 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001314/0.0667, allocations: 232.1 kB / 447.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001284/0.06684, allocations: 310.3 kB / 447.5 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.506e-05/0.0669, allocations: 20.02 kB / 447.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.773e-05/0.06694, allocations: 111.8 kB / 447.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of Backend: time 2.4e-07/0.06695, allocations: 0 / 447.7 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003612/0.06731, allocations: 90.33 kB / 447.8 MB, free: 11.57 MB / 298.7 MB Notification: Performance of SimCode: time 0.000341/0.06767, allocations: 0.6404 MB / 448.4 MB, free: 10.88 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for step.startTime 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: step.startTime (no alias) initial: 0.1 no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for assignClock.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: assignClock.u (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for assignClock.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: assignClock.y (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for sample.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: sample.y (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for step.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:3: step.y (no alias) initial: no arrCref index:(5) [] 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:(6) [] 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:(7) [] 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:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for step.height 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: step.height (no alias) initial: 1 no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for step.offset 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: step.offset (no alias) initial: 0 no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for step.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:3: step.y (no alias) initial: no arrCref index:(5) [] 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:0: periodicClock.useSolver (no alias) initial: false no arrCref index:(12) [] 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:(13) [] Error: Internal error GetVarIndexListByMapping: No Element for assignClock.u found! Error: Internal error GetVarIndexListByMapping: No Element for assignClock.y found! Error: Internal error GetVarIndexListByMapping: No Element for sample.y found! Error: Internal error GetVarIndexListByMapping: No Element for step.y found! Error: Internal error GetVarIndexListByMapping: No Element for step.startTime 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 step.height found! Error: Internal error GetVarIndexListByMapping: No Element for step.offset found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found! Error: Internal error GetVarIndexListByMapping: No Element for sample.u found!