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.006886/0.006886, allocations: 92.27 kB / 15.91 MB, free: 6.273 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.001446/0.001446, allocations: 196.7 kB / 16.83 MB, free: 6.188 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.711/1.711, allocations: 205.1 MB / 222.7 MB, free: 4.719 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.08061/0.0806, allocations: 12.59 MB / 282.6 MB, free: 8.852 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.001634/0.001634, allocations: 87.89 kB / 342.8 MB, free: 21.19 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1206, allocations: 49.4 MB / 392.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample): time 0.002973/0.1236, allocations: 1.633 MB / 393.8 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008544/0.1245, allocations: 0.4996 MB / 394.3 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.011e-05/0.1246, allocations: 4 kB / 394.3 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.035e-05/0.1247, allocations: 7.922 kB / 394.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001293/0.1248, allocations: 11.92 kB / 394.3 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002676/0.1251, allocations: 47.89 kB / 394.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.127e-05/0.1252, allocations: 39.86 kB / 394.4 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.845e-05/0.1253, allocations: 12.19 kB / 394.4 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.388e-05/0.1254, allocations: 27.84 kB / 394.5 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.149e-05/0.1255, allocations: 15.92 kB / 394.5 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.465e-05/0.1255, allocations: 0 / 394.5 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.42e-05/0.1255, allocations: 8 kB / 394.5 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.1256, allocations: 15.92 kB / 394.5 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.115e-05/0.1256, allocations: 23.81 kB / 394.5 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001075/0.1257, allocations: 51.75 kB / 394.6 MB, free: 1.285 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1257, allocations: 0 / 394.6 MB, free: 1.285 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1258, allocations: 4 kB / 394.6 MB, free: 1.281 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.1258, allocations: 3.938 kB / 394.6 MB, free: 1.277 MB / 286.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.0005378/0.1263, allocations: 379.4 kB / 395 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.1263, allocations: 8.031 kB / 395 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.887e-05/0.1264, allocations: 8.844 kB / 395 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.1266, allocations: 208 kB / 395.2 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.338e-06/0.1267, allocations: 8.375 kB / 395.2 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.266e-05/0.1267, allocations: 384 / 395.2 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002879/0.127, allocations: 118 kB / 395.3 MB, free: 468 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.127, allocations: 7.984 kB / 395.3 MB, free: 460 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.246e-05/0.127, allocations: 3.938 kB / 395.3 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.56e-06/0.127, allocations: 0 / 395.3 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.608e-05/0.1271, allocations: 27.92 kB / 395.3 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003338/0.1275, allocations: 266.6 kB / 395.6 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.1276, allocations: 75.78 kB / 395.7 MB, free: 0 / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.128e-05/0.1277, allocations: 34.56 kB / 395.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.1277, allocations: 7.938 kB / 395.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.942e-05/0.1278, allocations: 34.56 kB / 395.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.272e-06/0.1278, allocations: 0 / 395.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002989/0.1281, allocations: 81.52 kB / 395.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.606e-05/0.1282, allocations: 110.8 kB / 395.9 MB, free: 15.69 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.1283, allocations: 146 kB / 396.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.1284, allocations: 29.7 kB / 396.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.607e-05/0.1285, allocations: 92.14 kB / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.207e-05/0.1285, allocations: 3.906 kB / 396.2 MB, free: 15.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.055e-05/0.1285, allocations: 21.7 kB / 396.2 MB, free: 15.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1287, allocations: 314.8 kB / 396.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.634e-05/0.1287, allocations: 15.98 kB / 396.5 MB, free: 15.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.783e-05/0.1288, allocations: 35.42 kB / 396.6 MB, free: 15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.914e-05/0.1289, allocations: 47.36 kB / 396.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1289, allocations: 0 / 396.6 MB, free: 14.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001353/0.1291, allocations: 69.53 kB / 396.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.1291, allocations: 4 kB / 396.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.1291, allocations: 4 kB / 396.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.1291, allocations: 0 / 396.7 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.718e-05/0.1292, allocations: 15.92 kB / 396.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.1292, allocations: 0 / 396.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.516e-05/0.1293, allocations: 4 kB / 396.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.996e-06/0.1293, allocations: 0 / 396.7 MB, free: 14.84 MB / 302.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 0.0001007/0.1294, allocations: 129.9 kB / 396.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.716e-05/0.1295, allocations: 49.55 kB / 396.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.862e-05/0.1295, allocations: 15.86 kB / 396.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1295, allocations: 0 / 396.9 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.124e-06/0.1295, allocations: 4 kB / 396.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1295, allocations: 0 / 396.9 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.1297, allocations: 173.6 kB / 397.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1298, allocations: 3.938 kB / 397.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.064e-05/0.1298, allocations: 11.98 kB / 397.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.1298, allocations: 4.062 kB / 397.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.1299, allocations: 8 kB / 397.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.1299, allocations: 4 kB / 397.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1299, allocations: 0 / 397.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002125/0.1301, allocations: 177 kB / 397.3 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.337e-05/0.1302, allocations: 93 kB / 397.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.1302, allocations: 8 kB / 397.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.947e-05/0.1303, allocations: 3.984 kB / 397.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.1303, allocations: 0 / 397.4 MB, free: 14.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-06/0.1303, allocations: 4 kB / 397.4 MB, free: 14.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.653e-05/0.1304, allocations: 111.2 kB / 397.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1304, allocations: 0 / 397.5 MB, free: 13.95 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002272/0.1307, allocations: 15.94 kB / 397.5 MB, free: 13.93 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: 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.0001034/0.1308, allocations: 91.25 kB / 397.6 MB, free: 13.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001308/0.1309, allocations: 35.92 kB / 397.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1309, allocations: 0 / 397.6 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.604e-05/0.131, allocations: 7.984 kB / 397.7 MB, free: 13.79 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004362/0.1314, allocations: 43.83 kB / 397.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003563/0.1318, allocations: 191 kB / 397.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003656/0.1321, allocations: 0.7004 MB / 398.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.001e-05/0.1322, allocations: 3.984 kB / 398.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.54e-05/0.1322, allocations: 15.44 kB / 398.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1322, allocations: 0 / 398.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of Templates: time 0.002607/0.1348, allocations: 0.549 MB / 399.2 MB, free: 12.24 MB / 302.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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches