Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 105 kB / 16.45 MB, free: 6.391 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.002357/0.002357, allocations: 189 kB / 17.39 MB, free: 5.648 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.558/1.558, 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.0762/0.0762, 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.002019/0.002019, allocations: 82.45 kB / 394.2 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1362, allocations: 49.4 MB / 443.6 MB, free: 488 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.003835/0.1401, allocations: 1.548 MB / 445.1 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.1414, allocations: 0.5035 MB / 445.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.1415, allocations: 0 / 445.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.122e-05/0.1416, allocations: 3.938 kB / 445.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001801/0.1418, allocations: 15.86 kB / 445.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003157/0.1421, allocations: 35.91 kB / 445.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001317/0.1423, allocations: 39.78 kB / 445.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.1424, allocations: 19.98 kB / 445.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.991e-05/0.1425, allocations: 27.91 kB / 445.8 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.077e-05/0.1426, allocations: 15.92 kB / 445.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.92e-05/0.1426, allocations: 0 / 445.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.555e-05/0.1427, allocations: 4 kB / 445.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.585e-05/0.1427, allocations: 11.94 kB / 445.8 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.598e-05/0.1428, allocations: 23.8 kB / 445.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001381/0.1429, allocations: 43.77 kB / 445.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.143, allocations: 3.938 kB / 445.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.143, allocations: 0 / 445.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.692e-06/0.143, allocations: 4 kB / 445.9 MB, free: 14.16 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.0005466/0.1435, allocations: 375.2 kB / 446.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.1436, allocations: 12.03 kB / 446.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.995e-05/0.1436, allocations: 8.844 kB / 446.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003377/0.144, allocations: 192.1 kB / 446.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.237e-06/0.144, allocations: 384 / 446.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.954e-05/0.144, allocations: 4.375 kB / 446.4 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003142/0.1444, allocations: 101.3 kB / 446.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1444, allocations: 0 / 446.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.1444, allocations: 3.984 kB / 446.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.1444, allocations: 4 kB / 446.6 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.755e-05/0.1445, allocations: 15.92 kB / 446.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003942/0.1449, allocations: 269.8 kB / 446.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001031/0.145, allocations: 49.09 kB / 446.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.685e-05/0.1451, allocations: 17.77 kB / 446.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.208e-05/0.1451, allocations: 0 / 446.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.307e-05/0.1452, allocations: 42.56 kB / 446.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.1452, allocations: 0 / 446.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003034/0.1455, allocations: 65.52 kB / 447 MB, free: 12.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.268e-05/0.1456, allocations: 81.11 kB / 447.1 MB, free: 12.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001599/0.1458, allocations: 141.7 kB / 447.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.558e-05/0.1458, allocations: 29.7 kB / 447.3 MB, free: 12.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.306e-05/0.1459, allocations: 88.12 kB / 447.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.1459, allocations: 3.906 kB / 447.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.606e-05/0.146, allocations: 17.72 kB / 447.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.1461, allocations: 318.8 kB / 447.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.173e-05/0.1462, allocations: 11.98 kB / 447.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.885e-05/0.1462, allocations: 13.72 kB / 447.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.93e-05/0.1463, allocations: 37.7 kB / 447.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1463, allocations: 0 / 447.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001513/0.1465, allocations: 57.61 kB / 447.8 MB, free: 11.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.1465, allocations: 4 kB / 447.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.741e-06/0.1466, allocations: 4 kB / 447.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.1466, allocations: 4.062 kB / 447.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.319e-05/0.1467, allocations: 4 kB / 447.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.1467, allocations: 0 / 447.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.955e-05/0.1467, allocations: 7.984 kB / 447.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.1468, allocations: 0 / 447.8 MB, free: 11.95 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: 0 () * 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 0.000103/0.1469, allocations: 117.8 kB / 447.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.488e-05/0.147, allocations: 41.55 kB / 448 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.293e-05/0.147, allocations: 19.81 kB / 448 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.147, allocations: 0 / 448 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.147, allocations: 4.031 kB / 448 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.147, allocations: 3.938 kB / 448 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.1473, allocations: 173.6 kB / 448.2 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.436e-06/0.1473, allocations: 4 kB / 448.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.417e-05/0.1474, allocations: 4 kB / 448.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.023e-06/0.1474, allocations: 0 / 448.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.844e-06/0.1474, allocations: 0 / 448.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.752e-06/0.1474, allocations: 3.984 kB / 448.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.1474, allocations: 4 kB / 448.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002147/0.1476, allocations: 160.2 kB / 448.3 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.502e-05/0.1478, allocations: 93 kB / 448.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.1478, allocations: 4 kB / 448.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.916e-05/0.1479, allocations: 0 / 448.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.646e-05/0.148, allocations: 7.922 kB / 448.4 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.148, allocations: 7.938 kB / 448.4 MB, free: 11.21 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000101/0.1481, allocations: 107.3 kB / 448.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1481, allocations: 0 / 448.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003816/0.1485, allocations: 4 kB / 448.6 MB, free: 11.11 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: 0 () * 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.000127/0.1486, allocations: 103.2 kB / 448.7 MB, free: 11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000168/0.1488, allocations: 15.98 kB / 448.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1488, allocations: 0 / 448.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.477e-05/0.1489, allocations: 16.06 kB / 448.7 MB, free: 10.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004907/0.1494, allocations: 24.02 kB / 448.7 MB, free: 10.94 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000417/0.1498, allocations: 147.5 kB / 448.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003385/0.1502, allocations: 0.6885 MB / 449.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.112e-05/0.1502, allocations: 3.984 kB / 449.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.806e-05/0.1503, allocations: 7.438 kB / 449.6 MB, free: 10.04 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1503, allocations: 8.094 kB / 449.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of Templates: time 0.003708/0.154, allocations: 476.3 kB / 450 MB, free: 9.566 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches