Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001248/0.001248, allocations: 186.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.886/1.886, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.0007307/0.0007307, allocations: 92.92 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05833/0.05833, allocations: 12.2 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003762/0.0003763, allocations: 16 kB / 392.8 MB, free: 67.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06281/0.0632, allocations: 50.29 MB / 443 MB, free: 16.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2): time 0.001188/0.0644, allocations: 1.248 MB / 444.3 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002955/0.06471, allocations: 163.5 kB / 444.5 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.58e-05/0.06479, allocations: 4 kB / 444.5 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.972e-05/0.06483, allocations: 0 / 444.5 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.06494, allocations: 7.922 kB / 444.5 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001796/0.06513, allocations: 39.91 kB / 444.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.283e-05/0.06521, allocations: 27.92 kB / 444.5 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.562e-05/0.0653, allocations: 12 kB / 444.5 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.007e-05/0.06536, allocations: 27.84 kB / 444.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.577e-05/0.0654, allocations: 11.94 kB / 444.6 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.736e-05/0.06543, allocations: 0 / 444.6 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.568e-06/0.06544, allocations: 0 / 444.6 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.246e-05/0.06548, allocations: 11.98 kB / 444.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.224e-05/0.06552, allocations: 45.52 kB / 444.6 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.446e-05/0.06558, allocations: 35.88 kB / 444.7 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.06558, allocations: 0 / 444.7 MB, free: 15.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.06559, allocations: 3.938 kB / 444.7 MB, free: 15.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.0656, allocations: 0 / 444.7 MB, free: 15.02 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.0003084/0.06592, allocations: 359.5 kB / 445 MB, free: 14.62 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.06596, allocations: 8.031 kB / 445 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.003e-05/0.06599, allocations: 8.844 kB / 445 MB, free: 14.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001233/0.06612, allocations: 188.2 kB / 445.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.207e-05/0.06614, allocations: 8.312 kB / 445.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.06616, allocations: 8.375 kB / 445.2 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002416/0.06641, allocations: 117.6 kB / 445.4 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.06644, allocations: 192 / 445.4 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.06645, allocations: 3.938 kB / 445.4 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.06646, allocations: 0 / 445.4 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.369e-05/0.06654, allocations: 31.91 kB / 445.4 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002109/0.06676, allocations: 261.7 kB / 445.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001421/0.06691, allocations: 142.2 kB / 445.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.747e-05/0.06698, allocations: 37.77 kB / 445.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.06701, allocations: 0 / 445.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.39e-05/0.06703, allocations: 34.56 kB / 445.9 MB, free: 13.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.32e-07/0.06703, allocations: 0 / 445.9 MB, free: 13.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.000211/0.06725, allocations: 85.59 kB / 445.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.696e-05/0.06728, allocations: 81.11 kB / 446 MB, free: 13.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.699e-05/0.06736, allocations: 127.5 kB / 446.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.983e-06/0.06737, allocations: 29.7 kB / 446.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.446e-05/0.0674, allocations: 84.08 kB / 446.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.156e-05/0.06742, allocations: 15.84 kB / 446.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.314e-06/0.06743, allocations: 0 / 446.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.502e-05/0.06747, allocations: 315 kB / 446.6 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.705e-05/0.06751, allocations: 16 kB / 446.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.666e-05/0.06756, allocations: 39.3 kB / 446.6 MB, free: 12.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.903e-05/0.06763, allocations: 47.42 kB / 446.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.06764, allocations: 0 / 446.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001089/0.06776, allocations: 81.48 kB / 446.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.06778, allocations: 4.75 kB / 446.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-06/0.06779, allocations: 4 kB / 446.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.0678, allocations: 4 kB / 446.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.853e-05/0.06786, allocations: 8 kB / 446.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.638e-06/0.06787, allocations: 0 / 446.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.248e-05/0.06791, allocations: 11.89 kB / 446.8 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.09e-06/0.06792, allocations: 0 / 446.8 MB, free: 12.61 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: 0 () * 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.013e-05/0.06797, allocations: 126.4 kB / 446.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.068, allocations: 3.938 kB / 446.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.356e-05/0.06803, allocations: 16.25 kB / 446.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.06804, allocations: 3.984 kB / 446.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.06805, allocations: 0 / 446.9 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.167e-05/0.06808, allocations: 93 kB / 447 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.223e-05/0.0681, allocations: 0 / 447 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.33e-05/0.06817, allocations: 4 kB / 447 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.214e-05/0.0682, allocations: 4 kB / 447 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001298/0.06834, allocations: 232.1 kB / 447.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0001333/0.06848, allocations: 314 kB / 447.6 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.559e-05/0.06854, allocations: 24.39 kB / 447.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.139e-05/0.06858, allocations: 107.3 kB / 447.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of Backend: time 4.71e-07/0.06859, allocations: 0 / 447.7 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003587/0.06896, allocations: 90.33 kB / 447.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of SimCode: time 0.0003829/0.06935, allocations: 0.6443 MB / 448.4 MB, free: 10.85 MB / 298.7 MB 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:(1) [] 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:(2) [] 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:(3) [] 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:(4) [] 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:0: step.height (no alias) initial: 1.0 no arrCref index:(5) [] 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:1: step.offset (no alias) initial: 0.0 no arrCref index:(6) [] 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:2: step.startTime (no alias) initial: 0.1 no arrCref index:(7) [] 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:(4) [] 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:(9) [] 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:(10) [] 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:(11) [] 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.height found! Error: Internal error GetVarIndexListByMapping: No Element for step.offset 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 periodicClock.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found! Error: Internal error GetVarIndexListByMapping: No Element for sample.u found!