Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001201/0.001201, allocations: 100.9 kB / 16.45 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 192.1 kB / 17.39 MB, free: 5.668 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.716/1.716, allocations: 205.1 MB / 223.3 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08476/0.08476, allocations: 12.59 MB / 283.2 MB, free: 15.39 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.001925/0.001925, allocations: 91.77 kB / 394.2 MB, free: 45.36 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1217, allocations: 49.41 MB / 443.6 MB, free: 484 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002917/0.1246, allocations: 1.489 MB / 445.1 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004068/0.1251, allocations: 135.5 kB / 445.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.56e-05/0.1253, allocations: 4 kB / 445.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.789e-05/0.1253, allocations: 3.938 kB / 445.2 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001488/0.1255, allocations: 3.938 kB / 445.2 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002786/0.1258, allocations: 39.89 kB / 445.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001095/0.1259, allocations: 31.86 kB / 445.3 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001266/0.126, allocations: 11.94 kB / 445.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.991e-05/0.1261, allocations: 15.98 kB / 445.3 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.344e-05/0.1261, allocations: 11.88 kB / 445.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.675e-05/0.1262, allocations: 0 / 445.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.143e-05/0.1262, allocations: 4 kB / 445.3 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.748e-05/0.1262, allocations: 11.98 kB / 445.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.253e-05/0.1263, allocations: 23.8 kB / 445.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001146/0.1264, allocations: 39.78 kB / 445.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1264, allocations: 0 / 445.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1264, allocations: 0 / 445.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.1264, allocations: 0 / 445.4 MB, free: 14.64 MB / 334.1 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.000607/0.127, allocations: 367.2 kB / 445.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.1271, allocations: 8.031 kB / 445.8 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.687e-05/0.1271, allocations: 8.844 kB / 445.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002802/0.1274, allocations: 184.2 kB / 445.9 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.624e-06/0.1274, allocations: 12.31 kB / 446 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/0.1275, allocations: 384 / 446 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002934/0.1278, allocations: 89.61 kB / 446 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.1278, allocations: 4.188 kB / 446 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.1278, allocations: 3.938 kB / 446 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1278, allocations: 0 / 446 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.7e-05/0.1279, allocations: 19.92 kB / 446.1 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004122/0.1283, allocations: 265.8 kB / 446.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.282e-05/0.1284, allocations: 45.08 kB / 446.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.148e-05/0.1285, allocations: 25.72 kB / 446.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.1285, allocations: 0 / 446.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.531e-05/0.1286, allocations: 46.55 kB / 446.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 9.12e-07/0.1286, allocations: 0 / 446.4 MB, free: 13.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.000272/0.1288, allocations: 61.53 kB / 446.5 MB, free: 13.32 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/0.1289, allocations: 81.11 kB / 446.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.1291, allocations: 134.1 kB / 446.7 MB, free: 13.08 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.1291, allocations: 25.7 kB / 446.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.593e-05/0.1292, allocations: 88.39 kB / 446.8 MB, free: 12.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.539e-05/0.1292, allocations: 7.906 kB / 446.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.429e-05/0.1292, allocations: 13.72 kB / 446.8 MB, free: 12.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1294, allocations: 318.8 kB / 447.2 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.742e-05/0.1294, allocations: 4 kB / 447.2 MB, free: 12.61 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.204e-05/0.1295, allocations: 25.64 kB / 447.2 MB, free: 12.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.006e-05/0.1296, allocations: 25.78 kB / 447.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.1296, allocations: 0 / 447.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001046/0.1297, allocations: 61.55 kB / 447.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.1297, allocations: 4 kB / 447.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1297, allocations: 0 / 447.3 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.1297, allocations: 4 kB / 447.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.379e-05/0.1298, allocations: 4 kB / 447.3 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.1298, allocations: 4.062 kB / 447.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.722e-05/0.1299, allocations: 0 / 447.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.1299, allocations: 4 kB / 447.3 MB, free: 12.46 MB / 334.1 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 (step.y,sample.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.633e-05/0.13, allocations: 121.8 kB / 447.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.394e-05/0.1301, allocations: 45.48 kB / 447.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.369e-05/0.1301, allocations: 15.81 kB / 447.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1301, allocations: 0 / 447.5 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1301, allocations: 4 kB / 447.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1301, allocations: 0 / 447.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002601/0.1304, allocations: 165.6 kB / 447.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1304, allocations: 0 / 447.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.59e-05/0.1304, allocations: 7.984 kB / 447.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.1304, allocations: 0 / 447.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.1305, allocations: 4 kB / 447.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1305, allocations: 0 / 447.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1305, allocations: 0 / 447.6 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001836/0.1307, allocations: 160.2 kB / 447.8 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.384e-05/0.1308, allocations: 92.94 kB / 447.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.1308, allocations: 8 kB / 447.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.889e-05/0.1309, allocations: 3.984 kB / 447.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.232e-05/0.1309, allocations: 0 / 447.9 MB, free: 11.74 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-06/0.1309, allocations: 7.938 kB / 447.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.74e-05/0.131, allocations: 99.27 kB / 448 MB, free: 11.64 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.131, allocations: 0 / 448 MB, free: 11.64 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002159/0.1312, allocations: 8.031 kB / 448 MB, free: 11.63 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002236/0.1315, allocations: 99.23 kB / 448.1 MB, free: 11.52 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001462/0.1316, allocations: 19.98 kB / 448.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.1316, allocations: 0 / 448.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.501e-05/0.1317, allocations: 7.938 kB / 448.1 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.132, allocations: 23.95 kB / 448.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003201/0.1323, allocations: 134.8 kB / 448.3 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003133/0.1326, allocations: 0.6846 MB / 449 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.152e-05/0.1327, allocations: 4 kB / 449 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.93e-05/0.1327, allocations: 7.438 kB / 449 MB, free: 10.59 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1327, allocations: 0 / 449 MB, free: 10.59 MB / 334.1 MB Notification: Performance of Templates: time 0.003072/0.1358, allocations: 444.4 kB / 449.4 MB, free: 10.16 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches