Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.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.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00211/0.00211, allocations: 105.3 kB / 16.45 MB, free: 5.988 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.002158/0.002158, allocations: 187.4 kB / 17.38 MB, free: 5.562 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.606/1.606, allocations: 205.1 MB / 223.3 MB, free: 12.21 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.07567/0.07567, allocations: 12.59 MB / 283.2 MB, free: 15.4 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.002163/0.002163, allocations: 91.16 kB / 394.2 MB, free: 45.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.119, allocations: 49.4 MB / 443.6 MB, free: 492 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample): time 0.003151/0.1222, allocations: 1.571 MB / 445.1 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009294/0.1232, allocations: 0.5035 MB / 445.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.1233, allocations: 7.938 kB / 445.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.26e-05/0.1234, allocations: 7.922 kB / 445.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.1236, allocations: 11.81 kB / 445.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.1239, allocations: 51.88 kB / 445.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.124, allocations: 43.84 kB / 445.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.1241, allocations: 24.11 kB / 445.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.348e-05/0.1242, allocations: 19.92 kB / 445.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.593e-05/0.1242, allocations: 27.84 kB / 445.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.804e-05/0.1243, allocations: 0 / 445.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.16e-05/0.1243, allocations: 4 kB / 445.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.239e-05/0.1243, allocations: 15.92 kB / 445.9 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.559e-05/0.1244, allocations: 35.75 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.1245, allocations: 51.75 kB / 445.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1245, allocations: 0 / 445.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1245, allocations: 0 / 445.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.05e-06/0.1245, allocations: 0 / 445.9 MB, free: 14.09 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004968/0.125, allocations: 383.1 kB / 446.3 MB, free: 13.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.1251, allocations: 8.031 kB / 446.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.93e-05/0.1251, allocations: 8.844 kB / 446.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002584/0.1254, allocations: 200.2 kB / 446.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.066e-05/0.1254, allocations: 384 / 446.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.1254, allocations: 8.312 kB / 446.5 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.1257, allocations: 125.8 kB / 446.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.1257, allocations: 4 kB / 446.7 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.1257, allocations: 4 kB / 446.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1258, allocations: 4 kB / 446.7 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.523e-05/0.1258, allocations: 19.98 kB / 446.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003351/0.1262, allocations: 270.5 kB / 447 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001136/0.1263, allocations: 71.78 kB / 447 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.661e-05/0.1264, allocations: 38.56 kB / 447.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.485e-05/0.1264, allocations: 0 / 447.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.1265, allocations: 38.56 kB / 447.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.1265, allocations: 0 / 447.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002787/0.1267, allocations: 89.44 kB / 447.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.305e-05/0.1268, allocations: 106.8 kB / 447.3 MB, free: 12.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.1269, allocations: 138.2 kB / 447.4 MB, free: 12.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.127, allocations: 29.7 kB / 447.5 MB, free: 12.32 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.87e-05/0.127, allocations: 92.12 kB / 447.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.509e-05/0.127, allocations: 0 / 447.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.1271, allocations: 25.62 kB / 447.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.1272, allocations: 326.8 kB / 447.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.278e-05/0.1272, allocations: 4 kB / 447.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.458e-05/0.1273, allocations: 39.42 kB / 447.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.421e-05/0.1274, allocations: 47.36 kB / 448 MB, free: 11.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1274, allocations: 0 / 448 MB, free: 11.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001355/0.1276, allocations: 77.55 kB / 448.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.1276, allocations: 4 kB / 448.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.1276, allocations: 0 / 448.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.1276, allocations: 4 kB / 448.1 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.187e-05/0.1277, allocations: 4 kB / 448.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.1277, allocations: 4 kB / 448.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.419e-05/0.1278, allocations: 3.984 kB / 448.1 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.021e-05/0.1278, allocations: 4 kB / 448.1 MB, free: 11.65 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.951e-05/0.1279, allocations: 121.9 kB / 448.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.6e-05/0.128, allocations: 57.53 kB / 448.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.244e-05/0.128, allocations: 11.83 kB / 448.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.128, allocations: 4.094 kB / 448.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.128, allocations: 3.938 kB / 448.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.128, allocations: 3.984 kB / 448.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001696/0.1282, allocations: 185.4 kB / 448.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1282, allocations: 0 / 448.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.854e-05/0.1283, allocations: 8 kB / 448.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.1283, allocations: 4.062 kB / 448.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.1283, allocations: 7.984 kB / 448.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.1283, allocations: 0 / 448.5 MB, free: 11.19 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.1283, allocations: 3.938 kB / 448.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001857/0.1285, allocations: 181.1 kB / 448.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.63e-05/0.1286, allocations: 97 kB / 448.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.1286, allocations: 4 kB / 448.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.876e-05/0.1287, allocations: 4 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.677e-05/0.1287, allocations: 4 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-06/0.1287, allocations: 3.938 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.094e-05/0.1288, allocations: 115.9 kB / 448.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1288, allocations: 0 / 448.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002243/0.1291, allocations: 4 kB / 448.9 MB, free: 10.74 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001008/0.1292, allocations: 107.2 kB / 449 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001409/0.1293, allocations: 27.97 kB / 449 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1293, allocations: 0 / 449 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.044e-05/0.1294, allocations: 11.94 kB / 449 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.1297, allocations: 27.95 kB / 449.1 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003476/0.1301, allocations: 177.2 kB / 449.2 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.1304, allocations: 0.6885 MB / 449.9 MB, free: 9.637 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.448e-05/0.1304, allocations: 11.73 kB / 449.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.337e-05/0.1304, allocations: 15.44 kB / 449.9 MB, free: 9.609 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1304, allocations: 0 / 449.9 MB, free: 9.609 MB / 334.1 MB Notification: Performance of Templates: time 0.002934/0.1334, allocations: 0.5942 MB / 450.5 MB, free: 9.016 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches