Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001647/0.001647, allocations: 175.4 kB / 16.77 MB, free: 4.922 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.734/1.734, allocations: 205.4 MB / 222.9 MB, free: 9.008 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007167/0.0007167, allocations: 85.34 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07183/0.07183, allocations: 12.59 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006938/0.0006941, allocations: 23.98 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1236, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.002355/0.126, allocations: 1.247 MB / 444.2 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.1271, allocations: 476.1 kB / 444.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001057/0.1272, allocations: 7.938 kB / 444.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.954e-05/0.1273, allocations: 3.938 kB / 444.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.1274, allocations: 11.92 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003516/0.1278, allocations: 35.91 kB / 444.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.1279, allocations: 35.86 kB / 444.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.1281, allocations: 4 kB / 444.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.309e-05/0.1282, allocations: 23.91 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.698e-05/0.1283, allocations: 11.94 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.822e-05/0.1283, allocations: 4 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.446e-05/0.1283, allocations: 0 / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.962e-05/0.1284, allocations: 15.92 kB / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.659e-05/0.1284, allocations: 41.58 kB / 444.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.1285, allocations: 31.88 kB / 444.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1286, allocations: 4 kB / 444.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1286, allocations: 0 / 444.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1286, allocations: 0 / 444.9 MB, free: 14.15 MB / 298.7 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.0005245/0.1291, allocations: 367.5 kB / 445.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.1292, allocations: 12.03 kB / 445.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.594e-05/0.1293, allocations: 8.844 kB / 445.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002157/0.1295, allocations: 185.9 kB / 445.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.1295, allocations: 8.375 kB / 445.5 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.35e-05/0.1296, allocations: 384 / 445.5 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003102/0.1299, allocations: 101.3 kB / 445.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1299, allocations: 0 / 445.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.169e-05/0.1299, allocations: 0 / 445.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.13, allocations: 0 / 445.6 MB, free: 13.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001284/0.1301, allocations: 23.98 kB / 445.6 MB, free: 13.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003411/0.1304, allocations: 269.7 kB / 445.9 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.1306, allocations: 49.14 kB / 445.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.5e-05/0.1307, allocations: 17.78 kB / 445.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.051e-05/0.1307, allocations: 0 / 445.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.1307, allocations: 34.56 kB / 446 MB, free: 12.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=2): time 1.463e-06/0.1308, allocations: 3.938 kB / 446 MB, free: 12.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003756/0.1311, allocations: 69.67 kB / 446 MB, free: 12.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.1312, allocations: 81.05 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/0.1313, allocations: 146 kB / 446.2 MB, free: 12.58 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.064e-05/0.1314, allocations: 25.7 kB / 446.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.293e-05/0.1314, allocations: 92.08 kB / 446.4 MB, free: 12.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.1315, allocations: 3.938 kB / 446.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-06/0.1315, allocations: 0 / 446.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.949e-05/0.1316, allocations: 322.8 kB / 446.7 MB, free: 12.13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.628e-05/0.1317, allocations: 8 kB / 446.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.393e-05/0.1317, allocations: 29.64 kB / 446.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/0.1319, allocations: 33.7 kB / 446.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1319, allocations: 0 / 446.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001666/0.1321, allocations: 65.59 kB / 446.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.1321, allocations: 6.812 kB / 446.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.1321, allocations: 4 kB / 446.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.523e-05/0.1321, allocations: 0 / 446.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.015e-05/0.1322, allocations: 8 kB / 446.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.1322, allocations: 3.984 kB / 446.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.519e-05/0.1323, allocations: 4 kB / 446.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.1323, allocations: 0 / 446.8 MB, free: 11.95 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.943e-05/0.1324, allocations: 130.4 kB / 447 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.112e-05/0.1325, allocations: 45.59 kB / 447 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.1325, allocations: 11.83 kB / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1326, allocations: 0 / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.1326, allocations: 0 / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1326, allocations: 0 / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.1328, allocations: 177.6 kB / 447.2 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1328, allocations: 0 / 447.2 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.411e-05/0.1329, allocations: 7.984 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.1329, allocations: 4.031 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.476e-06/0.1329, allocations: 0 / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1329, allocations: 4 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1329, allocations: 0 / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.1331, allocations: 160.3 kB / 447.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.777e-05/0.1332, allocations: 93.03 kB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.1332, allocations: 4 kB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001153/0.1334, allocations: 3.984 kB / 447.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.476e-05/0.1334, allocations: 4 kB / 447.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.296e-06/0.1334, allocations: 4 kB / 447.5 MB, free: 11.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.603e-05/0.1335, allocations: 107.2 kB / 447.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1335, allocations: 3.938 kB / 447.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003733/0.1339, allocations: 4 kB / 447.6 MB, free: 11.1 MB / 298.7 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 (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 9.31e-05/0.134, allocations: 95.25 kB / 447.7 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001835/0.1342, allocations: 31.92 kB / 447.7 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1342, allocations: 0 / 447.7 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.022e-05/0.1343, allocations: 4 kB / 447.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005254/0.1349, allocations: 26.06 kB / 447.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004327/0.1353, allocations: 211 kB / 447.9 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001495/0.1355, allocations: 0.6926 MB / 448.6 MB, free: 9.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.655e-05/0.1355, allocations: 7.438 kB / 448.6 MB, free: 9.973 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.1355, allocations: 0 / 448.6 MB, free: 9.973 MB / 298.7 MB Notification: Performance of Templates: time 0.002643/0.1382, allocations: 0.6874 MB / 449.3 MB, free: 9.285 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches