Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/Modelica_Synchronous 0.93.0-master/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-master/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 101 kB / 15.73 MB, free: 436 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001551/0.001552, allocations: 174.9 kB / 16.61 MB, free: 6.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.4 MB / 222.8 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08092/0.08092, allocations: 12.61 MB / 283.6 MB, free: 8.699 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006933/0.0006932, allocations: 20 kB / 344.5 MB, free: 21.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1047, allocations: 50.38 MB / 394.9 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.002852/0.1076, allocations: 1.604 MB / 396.5 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.1096, allocations: 1.023 MB / 397.5 MB, free: 156 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002444/0.1099, allocations: 4 kB / 397.5 MB, free: 152 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003917/0.1103, allocations: 59.73 kB / 397.6 MB, free: 92 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003809/0.1107, allocations: 83.75 kB / 397.7 MB, free: 8 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.1119, allocations: 235.3 kB / 397.9 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003974/0.1123, allocations: 127.7 kB / 398 MB, free: 15.65 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.1125, allocations: 37.64 kB / 398.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.1127, allocations: 75.64 kB / 398.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001823/0.1129, allocations: 87.66 kB / 398.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.62e-05/0.1129, allocations: 4 kB / 398.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001886/0.1131, allocations: 39.97 kB / 398.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.758e-05/0.1132, allocations: 59.77 kB / 398.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.039e-05/0.1133, allocations: 53.58 kB / 398.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.1136, allocations: 211.8 kB / 398.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.495e-06/0.1136, allocations: 0 / 398.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1136, allocations: 0 / 398.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.1136, allocations: 0 / 398.6 MB, free: 15.09 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009137/0.1146, allocations: 0.5427 MB / 399.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.1146, allocations: 8.031 kB / 399.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.578e-05/0.1147, allocations: 35.62 kB / 399.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004068/0.1151, allocations: 294.3 kB / 399.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.1151, allocations: 12 kB / 399.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.1152, allocations: 12 kB / 399.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005601/0.1157, allocations: 327 kB / 399.8 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.1158, allocations: 4 kB / 399.8 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.1158, allocations: 7.984 kB / 399.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.944e-06/0.1158, allocations: 4 kB / 399.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.116, allocations: 71.89 kB / 399.9 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005429/0.1165, allocations: 406.3 kB / 400.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003749/0.1169, allocations: 192 kB / 400.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.805e-05/0.117, allocations: 20.2 kB / 400.5 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/0.1171, allocations: 79.39 kB / 400.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.923e-06/0.1171, allocations: 0 / 400.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005263/0.1177, allocations: 257 kB / 400.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001118/0.1178, allocations: 162.2 kB / 401 MB, free: 12.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003584/0.1182, allocations: 346.9 kB / 401.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.617e-05/0.1182, allocations: 29.7 kB / 401.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.1183, allocations: 136.7 kB / 401.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.688e-05/0.1184, allocations: 27.69 kB / 401.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.05e-05/0.1184, allocations: 7.938 kB / 401.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001724/0.1186, allocations: 338.8 kB / 401.8 MB, free: 11.53 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.667e-05/0.1187, allocations: 40.45 kB / 401.9 MB, free: 11.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.1189, allocations: 183.5 kB / 402.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.119, allocations: 67.92 kB / 402.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.1191, allocations: 8 kB / 402.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003478/0.1194, allocations: 225.9 kB / 402.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.1194, allocations: 8 kB / 402.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-06/0.1195, allocations: 8.312 kB / 402.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.023e-05/0.1195, allocations: 4 kB / 402.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.1197, allocations: 47.86 kB / 402.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/0.1197, allocations: 15.88 kB / 402.4 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.1198, allocations: 19.84 kB / 402.5 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.973e-05/0.1198, allocations: 15.98 kB / 402.5 MB, free: 10.83 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0002056/0.12, allocations: 188 kB / 402.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.1202, allocations: 141.2 kB / 402.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.262e-05/0.1203, allocations: 33.73 kB / 402.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1203, allocations: 4 kB / 402.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.1204, allocations: 0 / 402.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.1204, allocations: 7.953 kB / 402.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002429/0.1206, allocations: 253.5 kB / 403.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1206, allocations: 0 / 403.1 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/0.1208, allocations: 35.92 kB / 403.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1208, allocations: 3.938 kB / 403.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/0.1208, allocations: 11.98 kB / 403.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.1208, allocations: 4 kB / 403.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1208, allocations: 0 / 403.1 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003955/0.1212, allocations: 272.1 kB / 403.4 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001221/0.1214, allocations: 124.8 kB / 403.5 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.268e-05/0.1214, allocations: 19.97 kB / 403.5 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.9e-05/0.1215, allocations: 11.95 kB / 403.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.807e-05/0.1216, allocations: 7.984 kB / 403.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.1216, allocations: 8 kB / 403.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000244/0.1219, allocations: 249.9 kB / 403.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1219, allocations: 0 / 403.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003321/0.1222, allocations: 48 kB / 403.9 MB, free: 9.316 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009855/0.1232, allocations: 435.5 kB / 404.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003268/0.1235, allocations: 143.8 kB / 404.4 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1235, allocations: 0 / 404.4 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.113e-05/0.1236, allocations: 29.05 kB / 404.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.1241, allocations: 121.3 kB / 404.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007594/0.1249, allocations: 0.4897 MB / 405.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.1252, allocations: 0.7794 MB / 405.8 MB, free: 7.273 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.641e-05/0.1253, allocations: 34.5 kB / 405.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.749e-05/0.1254, allocations: 27.42 kB / 405.9 MB, free: 7.207 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1254, allocations: 4 kB / 405.9 MB, free: 7.203 MB / 302.1 MB Notification: Performance of Templates: time 0.007/0.1324, allocations: 3.18 MB / 409.1 MB, free: 4.02 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches