Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001168, allocations: 108.9 kB / 16.45 MB, free: 6.43 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.001442/0.001442, allocations: 187 kB / 17.39 MB, free: 5.691 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.572/1.572, 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.08899/0.08899, allocations: 12.6 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.002244/0.002244, allocations: 86.84 kB / 394.2 MB, free: 45.53 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1227, allocations: 49.41 MB / 443.6 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold): time 0.003679/0.1265, allocations: 1.587 MB / 445.2 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001292/0.1278, allocations: 0.5462 MB / 445.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001518/0.128, allocations: 4 kB / 445.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.861e-05/0.1281, allocations: 3.938 kB / 445.7 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002065/0.1283, allocations: 19.84 kB / 445.7 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004231/0.1287, allocations: 47.83 kB / 445.8 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001402/0.1289, allocations: 51.84 kB / 445.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001347/0.129, allocations: 27.92 kB / 445.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.1291, allocations: 31.78 kB / 445.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.968e-05/0.1292, allocations: 23.86 kB / 445.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.23e-05/0.1293, allocations: 4 kB / 445.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.527e-05/0.1293, allocations: 4 kB / 445.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.689e-05/0.1294, allocations: 15.92 kB / 445.9 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.757e-05/0.1294, allocations: 27.81 kB / 446 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001722/0.1296, allocations: 67.67 kB / 446 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.1296, allocations: 4 kB / 446 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1296, allocations: 0 / 446 MB, free: 14.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1296, allocations: 0 / 446 MB, free: 14.12 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005497/0.1302, allocations: 387 kB / 446.4 MB, free: 13.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.1303, allocations: 12.03 kB / 446.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.174e-05/0.1303, allocations: 8.844 kB / 446.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/0.1306, allocations: 208.6 kB / 446.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.1307, allocations: 8.375 kB / 446.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.06e-05/0.1307, allocations: 12.12 kB / 446.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.131, allocations: 130.7 kB / 446.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.1311, allocations: 4 kB / 446.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.1311, allocations: 0 / 446.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.1311, allocations: 0 / 446.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001055/0.1312, allocations: 27.92 kB / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004622/0.1317, allocations: 291.4 kB / 447.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.1319, allocations: 98.36 kB / 447.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.634e-05/0.132, allocations: 43.55 kB / 447.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.087e-05/0.132, allocations: 8 kB / 447.2 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.132, allocations: 34.5 kB / 447.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.193e-06/0.132, allocations: 0 / 447.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003615/0.1324, allocations: 101.9 kB / 447.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000113/0.1325, allocations: 144.5 kB / 447.5 MB, free: 12.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001731/0.1327, allocations: 145.8 kB / 447.7 MB, free: 12.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.1327, allocations: 29.7 kB / 447.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.234e-05/0.1328, allocations: 95.98 kB / 447.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.347e-05/0.1328, allocations: 3.938 kB / 447.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-05/0.1329, allocations: 25.61 kB / 447.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1331, allocations: 322.8 kB / 448.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.08e-05/0.1331, allocations: 15.98 kB / 448.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.683e-05/0.1332, allocations: 40.28 kB / 448.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.1333, allocations: 68.16 kB / 448.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1333, allocations: 0 / 448.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001617/0.1335, allocations: 73.61 kB / 448.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.1335, allocations: 8 kB / 448.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1335, allocations: 0 / 448.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.1335, allocations: 8.094 kB / 448.3 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.1337, allocations: 19.92 kB / 448.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.1337, allocations: 0 / 448.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.283e-05/0.1337, allocations: 11.84 kB / 448.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.1337, allocations: 4 kB / 448.4 MB, free: 11.45 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (6): * Single equations (assignments): 6 * 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.0001122/0.1339, allocations: 121.8 kB / 448.5 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.134, allocations: 57.55 kB / 448.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.55e-05/0.134, allocations: 11.92 kB / 448.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1341, allocations: 8 kB / 448.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.1341, allocations: 0 / 448.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/0.1341, allocations: 7.938 kB / 448.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002554/0.1343, allocations: 173.6 kB / 448.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.025e-06/0.1344, allocations: 0 / 448.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.897e-05/0.1344, allocations: 16 kB / 448.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.1345, allocations: 0 / 448.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.1345, allocations: 3.984 kB / 448.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.557e-06/0.1345, allocations: 8.125 kB / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1345, allocations: 0 / 448.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003261/0.1348, allocations: 201.9 kB / 449 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.688e-05/0.1349, allocations: 89 kB / 449.1 MB, free: 10.65 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.535e-05/0.135, allocations: 8 kB / 449.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.039e-05/0.135, allocations: 0 / 449.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.545e-05/0.1351, allocations: 19.86 kB / 449.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.621e-06/0.1351, allocations: 0 / 449.1 MB, free: 10.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001021/0.1352, allocations: 112 kB / 449.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1352, allocations: 0 / 449.2 MB, free: 10.52 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002592/0.1355, allocations: 19.92 kB / 449.2 MB, free: 10.5 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * 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.0001562/0.1357, allocations: 95.19 kB / 449.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002052/0.1359, allocations: 48.11 kB / 449.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1359, allocations: 0 / 449.4 MB, free: 10.35 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.456e-05/0.1359, allocations: 7.984 kB / 449.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005201/0.1365, allocations: 35.95 kB / 449.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005381/0.137, allocations: 194.3 kB / 449.6 MB, free: 10.08 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006481/0.1377, allocations: 0.7041 MB / 450.3 MB, free: 9.348 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.105e-05/0.1377, allocations: 4 kB / 450.3 MB, free: 9.344 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.711e-05/0.1378, allocations: 15.38 kB / 450.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1378, allocations: 0 / 450.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of Templates: time 0.003888/0.1417, allocations: 0.7224 MB / 451 MB, free: 8.605 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches