Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.FirstOrderHold.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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.2_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.003784/0.003788, allocations: 369 kB / 15.96 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 3.982/3.982, allocations: 388.9 MB / 405.6 MB, free: 9.676 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.005225/0.005224, allocations: 223.9 kB / 451 MB, free: 145 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5514/0.5514, allocations: 80.03 MB / 0.5627 GB, free: 19.78 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004505/0.0004507, allocations: 12 kB / 0.6265 GB, free: 96.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1054, allocations: 54.87 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003738/0.1092, allocations: 1.209 MB / 0.6813 GB, free: 40.45 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001426/0.1107, allocations: 496.2 kB / 0.6818 GB, free: 39.96 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.1109, allocations: 0 / 0.6818 GB, free: 39.96 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 2.981e-05/0.1109, allocations: 3.938 kB / 0.6818 GB, free: 39.96 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.1111, allocations: 7.938 kB / 0.6818 GB, free: 39.95 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004802/0.1116, allocations: 35.89 kB / 0.6818 GB, free: 39.91 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003157/0.112, allocations: 79.77 kB / 0.6819 GB, free: 39.84 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002492/0.1122, allocations: 8 kB / 0.6819 GB, free: 39.83 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.1125, allocations: 35.84 kB / 0.6819 GB, free: 39.79 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/0.1127, allocations: 35.83 kB / 0.6819 GB, free: 39.76 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.935e-05/0.1128, allocations: 4 kB / 0.682 GB, free: 39.75 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.898e-05/0.1128, allocations: 4 kB / 0.682 GB, free: 39.75 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.697e-05/0.1129, allocations: 15.97 kB / 0.682 GB, free: 39.73 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 8.558e-05/0.113, allocations: 41.64 kB / 0.682 GB, free: 39.69 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001388/0.1132, allocations: 44.12 kB / 0.6821 GB, free: 39.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.952e-06/0.1132, allocations: 4 kB / 0.6821 GB, free: 39.64 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1132, allocations: 0 / 0.6821 GB, free: 39.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1132, allocations: 0 / 0.6821 GB, free: 39.64 MB / 346.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.001201/0.1144, allocations: 394.9 kB / 0.6824 GB, free: 39.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.248e-05/0.1146, allocations: 16.02 kB / 0.6824 GB, free: 39.19 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.594e-05/0.1147, allocations: 11.98 kB / 0.6825 GB, free: 39.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002/0.1149, allocations: 178.8 kB / 0.6826 GB, free: 38.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.779e-05/0.115, allocations: 4 kB / 0.6826 GB, free: 38.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.928e-05/0.115, allocations: 8 kB / 0.6826 GB, free: 38.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004473/0.1155, allocations: 85.64 kB / 0.6827 GB, free: 38.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.1156, allocations: 0 / 0.6827 GB, free: 38.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.038e-05/0.1156, allocations: 7.938 kB / 0.6827 GB, free: 38.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1156, allocations: 0 / 0.6827 GB, free: 38.86 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003303/0.116, allocations: 47.98 kB / 0.6828 GB, free: 38.81 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001067/0.1171, allocations: 332.7 kB / 0.6831 GB, free: 38.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004222/0.1175, allocations: 94.48 kB / 0.6832 GB, free: 38.33 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002438/0.1178, allocations: 48.83 kB / 0.6832 GB, free: 38.28 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.684e-05/0.1179, allocations: 3.953 kB / 0.6832 GB, free: 38.28 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004691/0.1183, allocations: 99.48 kB / 0.6833 GB, free: 38.17 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 5.58e-06/0.1184, allocations: 3.938 kB / 0.6833 GB, free: 38.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.001031/0.1194, allocations: 186.8 kB / 0.6835 GB, free: 37.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.1195, allocations: 67.38 kB / 0.6836 GB, free: 37.9 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.1197, allocations: 118 kB / 0.6837 GB, free: 37.77 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.352e-05/0.1197, allocations: 33.7 kB / 0.6837 GB, free: 37.73 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.004e-05/0.1198, allocations: 88.41 kB / 0.6838 GB, free: 37.64 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.383e-05/0.1199, allocations: 35.56 kB / 0.6838 GB, free: 37.61 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.775e-05/0.1199, allocations: 4 kB / 0.6838 GB, free: 37.61 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.756e-05/0.12, allocations: 322.8 kB / 0.6841 GB, free: 37.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00022/0.1203, allocations: 40.34 kB / 0.6842 GB, free: 37.24 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002498/0.1205, allocations: 77.81 kB / 0.6843 GB, free: 37.15 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000273/0.1208, allocations: 48 kB / 0.6843 GB, free: 37.1 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.1209, allocations: 0 / 0.6843 GB, free: 37.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.001305/0.1222, allocations: 161.8 kB / 0.6845 GB, free: 36.94 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.1223, allocations: 11.95 kB / 0.6845 GB, free: 36.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.1223, allocations: 4 kB / 0.6845 GB, free: 36.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.994e-05/0.1223, allocations: 0 / 0.6845 GB, free: 36.92 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002822/0.1226, allocations: 23.92 kB / 0.6845 GB, free: 36.9 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.381e-05/0.1227, allocations: 4 kB / 0.6845 GB, free: 36.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.1229, allocations: 15.84 kB / 0.6845 GB, free: 36.88 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.123, allocations: 7.984 kB / 0.6845 GB, free: 36.87 MB / 346.7 MB 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.000278/0.1233, allocations: 132.8 kB / 0.6847 GB, free: 36.73 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.752e-05/0.1234, allocations: 11.91 kB / 0.6847 GB, free: 36.72 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.882e-05/0.1235, allocations: 12.45 kB / 0.6847 GB, free: 36.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.1236, allocations: 3.984 kB / 0.6847 GB, free: 36.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.1236, allocations: 3.984 kB / 0.6847 GB, free: 36.7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.475e-05/0.1237, allocations: 85.02 kB / 0.6848 GB, free: 36.6 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.811e-05/0.1238, allocations: 4 kB / 0.6848 GB, free: 36.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003017/0.1241, allocations: 11.98 kB / 0.6848 GB, free: 36.58 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.1243, allocations: 7.984 kB / 0.6848 GB, free: 36.57 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006909/0.125, allocations: 239.8 kB / 0.685 GB, free: 36.34 MB / 346.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0006681/0.1257, allocations: 338.6 kB / 0.6853 GB, free: 35.99 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002056/0.1259, allocations: 43.97 kB / 0.6854 GB, free: 35.95 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.226e-05/0.126, allocations: 95.58 kB / 0.6855 GB, free: 35.85 MB / 346.7 MB Notification: Performance of Backend: time 2.295e-06/0.1261, allocations: 0 / 0.6855 GB, free: 35.85 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007238/0.1268, allocations: 142.3 kB / 0.6856 GB, free: 35.71 MB / 346.7 MB Notification: Performance of SimCode: time 0.0005711/0.1274, allocations: 0.6436 MB / 0.6862 GB, free: 35.02 MB / 346.7 MB Notification: Performance of Templates: time 0.004121/0.1315, allocations: 0.944 MB / 0.6872 GB, free: 34.08 MB / 346.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