Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008602/0.0008603, allocations: 182.4 kB / 17.44 MB, free: 4.258 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.211/1.211, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.0007584/0.0007584, allocations: 95.8 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.062/0.062, allocations: 12.19 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003624/0.0003625, allocations: 20 kB / 392.8 MB, free: 67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06209/0.06247, allocations: 50.29 MB / 443.1 MB, free: 16.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked): time 0.001091/0.06359, allocations: 1.185 MB / 444.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002444/0.06385, allocations: 155.6 kB / 444.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.306e-05/0.06391, allocations: 0 / 444.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.799e-05/0.06394, allocations: 7.938 kB / 444.4 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.192e-05/0.06401, allocations: 8 kB / 444.4 MB, free: 15.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001408/0.06416, allocations: 35.91 kB / 444.4 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.275e-05/0.06422, allocations: 23.92 kB / 444.5 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.224e-05/0.06428, allocations: 11.98 kB / 444.5 MB, free: 15.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.814e-05/0.06433, allocations: 15.92 kB / 444.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.079e-05/0.06435, allocations: 11.92 kB / 444.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.217e-05/0.06437, allocations: 4 kB / 444.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.115e-06/0.06439, allocations: 0 / 444.5 MB, free: 15.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.382e-05/0.06441, allocations: 7.938 kB / 444.5 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.291e-05/0.06444, allocations: 41.58 kB / 444.6 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 4.33e-05/0.06449, allocations: 31.94 kB / 444.6 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.0645, allocations: 4 kB / 444.6 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.06451, allocations: 0 / 444.6 MB, free: 15.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.765e-06/0.06452, allocations: 0 / 444.6 MB, free: 15.1 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002324/0.06475, allocations: 351.5 kB / 444.9 MB, free: 14.7 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.743e-05/0.06479, allocations: 11.97 kB / 444.9 MB, free: 14.69 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.135e-05/0.06481, allocations: 8.844 kB / 445 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000103/0.06492, allocations: 184.2 kB / 445.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.06494, allocations: 8.312 kB / 445.1 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.006e-05/0.06496, allocations: 4.375 kB / 445.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000158/0.06512, allocations: 97.52 kB / 445.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.06514, allocations: 192 / 445.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.462e-06/0.06515, allocations: 7.922 kB / 445.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-06/0.06516, allocations: 0 / 445.3 MB, free: 14.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.773e-05/0.06521, allocations: 19.98 kB / 445.3 MB, free: 14.31 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001894/0.06541, allocations: 249.8 kB / 445.5 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.552e-05/0.06546, allocations: 53.08 kB / 445.6 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.684e-05/0.0655, allocations: 17.78 kB / 445.6 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.386e-05/0.06552, allocations: 0 / 445.6 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.2e-05/0.06554, allocations: 34.56 kB / 445.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 9.82e-07/0.06554, allocations: 0 / 445.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001526/0.0657, allocations: 57.84 kB / 445.7 MB, free: 13.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.65e-05/0.06573, allocations: 89.12 kB / 445.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.503e-05/0.0658, allocations: 138.6 kB / 445.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.431e-06/0.06581, allocations: 25.7 kB / 445.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.107e-05/0.06584, allocations: 84.14 kB / 446 MB, free: 13.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.12e-06/0.06585, allocations: 0 / 446 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.773e-06/0.06585, allocations: 0 / 446 MB, free: 13.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.182e-05/0.06589, allocations: 318.8 kB / 446.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.432e-05/0.06592, allocations: 11.98 kB / 446.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.065e-05/0.06595, allocations: 13.72 kB / 446.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.031e-05/0.066, allocations: 21.72 kB / 446.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.066, allocations: 0 / 446.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.418e-05/0.06608, allocations: 61.62 kB / 446.4 MB, free: 13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.0661, allocations: 4.625 kB / 446.4 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.406e-06/0.06611, allocations: 3.938 kB / 446.4 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.848e-06/0.06613, allocations: 4 kB / 446.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.632e-05/0.06616, allocations: 7.984 kB / 446.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.051e-06/0.06617, allocations: 0 / 446.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.454e-05/0.0662, allocations: 4 kB / 446.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-06/0.06621, allocations: 0 / 446.4 MB, free: 12.98 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.y,sample.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 4.517e-05/0.06626, allocations: 118.6 kB / 446.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.597e-05/0.06629, allocations: 15.84 kB / 446.6 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.922e-05/0.06631, allocations: 11.47 kB / 446.6 MB, free: 12.83 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.06632, allocations: 7.938 kB / 446.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.06633, allocations: 0 / 446.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.945e-05/0.06636, allocations: 93 kB / 446.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.338e-06/0.06638, allocations: 3.938 kB / 446.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.49e-05/0.06644, allocations: 0 / 446.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.202e-05/0.06646, allocations: 4 kB / 446.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.38e-05/0.06656, allocations: 212.1 kB / 446.9 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.000103/0.06668, allocations: 290.1 kB / 447.2 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.2e-05/0.06672, allocations: 20.08 kB / 447.2 MB, free: 12.17 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.706e-05/0.06676, allocations: 99.2 kB / 447.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of Backend: time 3e-07/0.06677, allocations: 0 / 447.3 MB, free: 12.07 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003281/0.0671, allocations: 94.27 kB / 447.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of SimCode: time 0.0003115/0.06742, allocations: 0.6363 MB / 448 MB, free: 11.28 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 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:(2) [] 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:(3) [] 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:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for sample.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: sample.u (no alias) initial: no arrCref index:(5) [] 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:1: sample.y (no alias) initial: no arrCref index:(6) [] 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:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for step.startValue 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.startValue (no alias) initial: false no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for sample.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: sample.u (no alias) initial: no arrCref index:(5) [] 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:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for sample.u found! Error: Internal error GetVarIndexListByMapping: No Element for sample.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 periodicClock.useSolver found! Error: Internal error GetVarIndexListByMapping: No Element for step.startValue found! Error: Internal error GetVarIndexListByMapping: No Element for periodicClock.solverMethod found! Error: Internal error GetVarIndexListByMapping: No Element for step.y found!