Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003835/0.003845, allocations: 353.8 kB / 15.95 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.598/3.598, allocations: 341.5 MB / 358.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003717/0.003717, allocations: 229.1 kB / 397.9 MB, free: 4.977 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.6126/0.6126, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005245/0.0005247, allocations: 11.98 kB / 0.5592 GB, free: 53.48 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1038, allocations: 48.71 MB / 0.6067 GB, free: 4.668 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001782/0.1056, allocations: 1.2 MB / 0.6079 GB, free: 3.457 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.001005/0.1067, allocations: 483.1 kB / 0.6084 GB, free: 2.98 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.25e-05/0.1068, allocations: 3.938 kB / 0.6084 GB, free: 2.977 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.087e-05/0.1068, allocations: 3.938 kB / 0.6084 GB, free: 2.973 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.1069, allocations: 15.91 kB / 0.6084 GB, free: 2.957 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002005/0.1072, allocations: 19.98 kB / 0.6084 GB, free: 2.938 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.1073, allocations: 87.69 kB / 0.6085 GB, free: 2.852 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.88e-05/0.1074, allocations: 11.98 kB / 0.6085 GB, free: 2.84 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.1075, allocations: 39.84 kB / 0.6085 GB, free: 2.801 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.69e-05/0.1076, allocations: 27.89 kB / 0.6086 GB, free: 2.773 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.28e-05/0.1077, allocations: 4 kB / 0.6086 GB, free: 2.77 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.992e-05/0.1077, allocations: 4 kB / 0.6086 GB, free: 2.766 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.581e-05/0.1077, allocations: 15.92 kB / 0.6086 GB, free: 2.75 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.945e-05/0.1078, allocations: 41.64 kB / 0.6086 GB, free: 2.703 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 9.531e-05/0.1079, allocations: 56.11 kB / 0.6087 GB, free: 2.648 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.1079, allocations: 0 / 0.6087 GB, free: 2.648 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1079, allocations: 4 kB / 0.6087 GB, free: 2.645 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.1079, allocations: 0 / 0.6087 GB, free: 2.645 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007623/0.1087, allocations: 391 kB / 0.6091 GB, free: 2.215 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.1088, allocations: 8.031 kB / 0.6091 GB, free: 2.207 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.42e-05/0.1088, allocations: 11.91 kB / 0.6091 GB, free: 2.195 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.1089, allocations: 182.9 kB / 0.6093 GB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.109, allocations: 0 / 0.6093 GB, free: 1.977 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.109, allocations: 8 kB / 0.6093 GB, free: 1.969 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002559/0.1093, allocations: 93.58 kB / 0.6093 GB, free: 1.871 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.1093, allocations: 0 / 0.6093 GB, free: 1.871 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.1093, allocations: 7.953 kB / 0.6094 GB, free: 1.863 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.148e-06/0.1093, allocations: 0 / 0.6094 GB, free: 1.863 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.1096, allocations: 51.97 kB / 0.6094 GB, free: 1.812 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006382/0.1102, allocations: 328.7 kB / 0.6097 GB, free: 1.441 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002474/0.1105, allocations: 94.42 kB / 0.6098 GB, free: 1.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.1106, allocations: 48.84 kB / 0.6099 GB, free: 1.289 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.1107, allocations: 3.953 kB / 0.6099 GB, free: 1.285 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002663/0.111, allocations: 99.3 kB / 0.61 GB, free: 1.176 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 3.476e-06/0.111, allocations: 0 / 0.61 GB, free: 1.176 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.000614/0.1116, allocations: 201.6 kB / 0.6101 GB, free: 0.9727 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.1117, allocations: 55.41 kB / 0.6102 GB, free: 0.9062 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.291e-05/0.1118, allocations: 117.8 kB / 0.6103 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.1118, allocations: 33.7 kB / 0.6103 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.42e-05/0.1118, allocations: 92.14 kB / 0.6104 GB, free: 0.6484 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.353e-05/0.1119, allocations: 31.55 kB / 0.6105 GB, free: 0.6172 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.033e-05/0.1119, allocations: 4 kB / 0.6105 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.392e-05/0.112, allocations: 326.8 kB / 0.6108 GB, free: 292 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.1121, allocations: 32.17 kB / 0.6108 GB, free: 260 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.1123, allocations: 75 kB / 0.6109 GB, free: 168 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.1125, allocations: 51.98 kB / 0.6109 GB, free: 116 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1125, allocations: 0 / 0.6109 GB, free: 116 kB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.3607/0.4733, allocations: 168.7 kB / 0.6111 GB, free: 90.31 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.4733, allocations: 4.469 kB / 0.6111 GB, free: 90.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.4734, allocations: 8.219 kB / 0.6111 GB, free: 90.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.739e-05/0.4734, allocations: 2.844 kB / 0.6111 GB, free: 90.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.4737, allocations: 19.11 kB / 0.6111 GB, free: 90.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.152e-05/0.4738, allocations: 6.531 kB / 0.6111 GB, free: 90.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001766/0.474, allocations: 10.69 kB / 0.6111 GB, free: 90.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.909e-05/0.474, allocations: 7.469 kB / 0.6111 GB, free: 90.31 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: firstOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean zeroOrderHold.firstTrigger:DISCRETE(fixed = true protected = true ) "Rising edge signals first sample instant" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0002801/0.4743, allocations: 140.2 kB / 0.6113 GB, free: 90.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.61e-05/0.4744, allocations: 12.73 kB / 0.6113 GB, free: 90.2 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.518e-05/0.4745, allocations: 15.36 kB / 0.6113 GB, free: 90.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.4745, allocations: 0.7031 kB / 0.6113 GB, free: 90.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.147e-06/0.4745, allocations: 2.406 kB / 0.6113 GB, free: 90.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001123/0.4746, allocations: 95.17 kB / 0.6114 GB, free: 90.11 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.438e-05/0.4747, allocations: 3.422 kB / 0.6114 GB, free: 90.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.475, allocations: 12.02 kB / 0.6114 GB, free: 90.11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.806e-05/0.4751, allocations: 11.2 kB / 0.6114 GB, free: 90.11 MB / 362.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008016/0.4759, allocations: 236.2 kB / 0.6117 GB, free: 90 MB / 362.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0007277/0.4766, allocations: 327.2 kB / 0.612 GB, free: 89.8 MB / 362.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002551/0.4769, allocations: 57.05 kB / 0.612 GB, free: 89.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.817e-05/0.477, allocations: 94.12 kB / 0.6121 GB, free: 89.72 MB / 362.7 MB Notification: Performance of Backend: time 2.375e-06/0.4771, allocations: 0 / 0.6121 GB, free: 89.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008929/0.478, allocations: 141.8 kB / 0.6122 GB, free: 89.66 MB / 362.7 MB Notification: Performance of SimCode: time 0.0008794/0.4789, allocations: 0.6497 MB / 0.6129 GB, free: 89.04 MB / 362.7 MB Notification: Performance of Templates: time 0.007179/0.4861, allocations: 0.9532 MB / 0.6138 GB, free: 89.04 MB / 362.7 MB "" Variables in the reference:time,firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.tSample,firstOrderHold.uSample,zeroOrderHold.firstTrigger,zeroOrderHold.ySample Variables in the result:firstOrderHold.c,firstOrderHold.firstTrigger,firstOrderHold.pre_uSample,firstOrderHold.samplePeriod,firstOrderHold.startTime,firstOrderHold.tSample,firstOrderHold.uSample,period,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time,zeroOrderHold.firstTrigger,zeroOrderHold.samplePeriod,zeroOrderHold.startTime,zeroOrderHold.ySample