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.001528/0.001528, allocations: 107 kB / 16.45 MB, free: 6.445 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.001818/0.001818, allocations: 186.4 kB / 17.39 MB, free: 5.668 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.614/1.614, 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.0836/0.0836, 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.001977/0.001977, allocations: 87.55 kB / 394.2 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1345, allocations: 49.4 MB / 443.6 MB, free: 484 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold): time 0.002903/0.1374, allocations: 1.59 MB / 445.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.1385, allocations: 0.5501 MB / 445.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001074/0.1386, allocations: 4 kB / 445.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.111e-05/0.1387, allocations: 3.938 kB / 445.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.1388, allocations: 7.875 kB / 445.7 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.1392, allocations: 55.81 kB / 445.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.1393, allocations: 51.84 kB / 445.8 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001389/0.1394, allocations: 27.91 kB / 445.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.337e-05/0.1395, allocations: 31.8 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.208e-05/0.1396, allocations: 27.84 kB / 445.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.019e-05/0.1397, allocations: 4 kB / 445.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.46e-05/0.1397, allocations: 4 kB / 445.9 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.243e-05/0.1397, allocations: 15.92 kB / 445.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.619e-05/0.1398, allocations: 27.81 kB / 446 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.14, allocations: 63.73 kB / 446 MB, free: 14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.14, allocations: 0 / 446 MB, free: 14 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.14, allocations: 0 / 446 MB, free: 14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.14, allocations: 0 / 446 MB, free: 14 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.0007468/0.1408, allocations: 387 kB / 446.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/0.1408, allocations: 8.031 kB / 446.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.089e-05/0.1409, allocations: 16.83 kB / 446.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003504/0.1412, allocations: 204.6 kB / 446.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.1413, allocations: 4.375 kB / 446.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.091e-05/0.1413, allocations: 8.125 kB / 446.6 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003861/0.1417, allocations: 126.7 kB / 446.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.1417, allocations: 7.938 kB / 446.8 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.775e-05/0.1417, allocations: 11.92 kB / 446.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.1417, allocations: 0 / 446.8 MB, free: 13.13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001112/0.1419, allocations: 27.92 kB / 446.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004674/0.1423, allocations: 291.5 kB / 447.1 MB, free: 12.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001865/0.1425, allocations: 98.42 kB / 447.2 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.468e-05/0.1426, allocations: 43.5 kB / 447.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.491e-05/0.1427, allocations: 11.92 kB / 447.3 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.1427, allocations: 30.56 kB / 447.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.302e-06/0.1427, allocations: 0 / 447.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0004646/0.1432, allocations: 101.9 kB / 447.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.026e-05/0.1433, allocations: 144.4 kB / 447.5 MB, free: 12.24 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.1434, allocations: 141.8 kB / 447.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.1434, allocations: 25.7 kB / 447.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.221e-05/0.1435, allocations: 99.97 kB / 447.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.272e-05/0.1435, allocations: 7.938 kB / 447.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.062e-05/0.1436, allocations: 21.62 kB / 447.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000217/0.1438, allocations: 326.9 kB / 448.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.101e-05/0.1439, allocations: 11.98 kB / 448.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.383e-05/0.1439, allocations: 44.23 kB / 448.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002358/0.1442, allocations: 60.22 kB / 448.2 MB, free: 11.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/0.1442, allocations: 3.984 kB / 448.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001531/0.1444, allocations: 73.62 kB / 448.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.1444, allocations: 7.984 kB / 448.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.1444, allocations: 4.156 kB / 448.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.1444, allocations: 4 kB / 448.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.883e-05/0.1445, allocations: 15.94 kB / 448.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.807e-06/0.1445, allocations: 0 / 448.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.541e-05/0.1446, allocations: 15.83 kB / 448.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.1446, allocations: 4 kB / 448.4 MB, free: 11.32 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 9.196e-05/0.1447, allocations: 117.8 kB / 448.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.63e-05/0.1448, allocations: 57.53 kB / 448.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.999e-05/0.1449, allocations: 15.94 kB / 448.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1449, allocations: 4 kB / 448.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1449, allocations: 0 / 448.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1449, allocations: 3.938 kB / 448.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002222/0.1451, allocations: 177.6 kB / 448.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1451, allocations: 4 kB / 448.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.73e-05/0.1452, allocations: 15.98 kB / 448.8 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1452, allocations: 4 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.057e-06/0.1452, allocations: 0 / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.1452, allocations: 0 / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.1452, allocations: 7.938 kB / 448.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002337/0.1455, allocations: 202.1 kB / 449 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.768e-05/0.1456, allocations: 93 kB / 449.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.1456, allocations: 7.984 kB / 449.1 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.582e-05/0.1457, allocations: 8 kB / 449.1 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.55e-05/0.1457, allocations: 11.88 kB / 449.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-06/0.1457, allocations: 0 / 449.1 MB, free: 10.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.981e-05/0.1458, allocations: 115.9 kB / 449.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1458, allocations: 0 / 449.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000239/0.1461, allocations: 15.94 kB / 449.2 MB, free: 10.37 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.0001102/0.1462, allocations: 95.19 kB / 449.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001923/0.1464, allocations: 47.91 kB / 449.4 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.1464, allocations: 0 / 449.4 MB, free: 10.22 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.421e-05/0.1465, allocations: 8 kB / 449.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004487/0.1469, allocations: 35.95 kB / 449.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004645/0.1474, allocations: 202.5 kB / 449.6 MB, free: 9.941 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003713/0.1478, allocations: 0.6924 MB / 450.3 MB, free: 9.223 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.191e-05/0.1478, allocations: 7.984 kB / 450.3 MB, free: 9.215 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.716e-05/0.1479, allocations: 19.38 kB / 450.3 MB, free: 9.195 MB / 334.1 MB Notification: Performance of SimCode: time 2e-07/0.1479, allocations: 0 / 450.3 MB, free: 9.195 MB / 334.1 MB Notification: Performance of Templates: time 0.003446/0.1513, allocations: 0.7106 MB / 451 MB, free: 8.484 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