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.001541/0.001541, allocations: 107.8 kB / 16.03 MB, free: 6.32 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.001748/0.001748, allocations: 192.3 kB / 16.95 MB, free: 6.145 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.584/1.584, allocations: 205.1 MB / 222.8 MB, free: 4.703 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.07023/0.07023, allocations: 12.6 MB / 282.7 MB, free: 8.777 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.001715/0.001715, allocations: 87.83 kB / 343 MB, free: 21.08 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.118, allocations: 49.39 MB / 392.4 MB, free: 3.605 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold): time 0.002947/0.121, allocations: 1.656 MB / 394 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008849/0.1219, allocations: 0.5385 MB / 394.6 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.103e-05/0.122, allocations: 7.938 kB / 394.6 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.399e-05/0.122, allocations: 4 kB / 394.6 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001209/0.1222, allocations: 11.86 kB / 394.6 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002541/0.1224, allocations: 47.89 kB / 394.6 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.754e-05/0.1225, allocations: 47.86 kB / 394.7 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00011/0.1226, allocations: 15.98 kB / 394.7 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.643e-05/0.1227, allocations: 31.84 kB / 394.7 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.905e-05/0.1228, allocations: 31.86 kB / 394.8 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.763e-05/0.1228, allocations: 4 kB / 394.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.186e-05/0.1228, allocations: 0 / 394.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.634e-05/0.1229, allocations: 15.94 kB / 394.8 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.798e-05/0.1229, allocations: 27.8 kB / 394.8 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001071/0.123, allocations: 59.73 kB / 394.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.1231, allocations: 0 / 394.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1231, allocations: 0 / 394.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.1231, allocations: 0 / 394.9 MB, free: 1.082 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005001/0.1236, allocations: 387.3 kB / 395.2 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.1236, allocations: 16.03 kB / 395.3 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.727e-05/0.1237, allocations: 12.78 kB / 395.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001943/0.1239, allocations: 200.7 kB / 395.5 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-06/0.1239, allocations: 384 / 395.5 MB, free: 404 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.378e-05/0.1239, allocations: 12.12 kB / 395.5 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002877/0.1242, allocations: 142.6 kB / 395.6 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.1242, allocations: 0 / 395.6 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.1242, allocations: 0 / 395.6 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.1242, allocations: 4 kB / 395.6 MB, free: 220 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.292e-05/0.1243, allocations: 23.92 kB / 395.7 MB, free: 196 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003988/0.1247, allocations: 291.4 kB / 395.9 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001189/0.1249, allocations: 90.36 kB / 396 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.525e-05/0.1249, allocations: 55.48 kB / 396.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.036e-05/0.125, allocations: 0 / 396.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.125, allocations: 34.56 kB / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.125, allocations: 0 / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002786/0.1253, allocations: 105.4 kB / 396.2 MB, free: 15.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.205e-05/0.1254, allocations: 132.5 kB / 396.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001276/0.1255, allocations: 141.8 kB / 396.5 MB, free: 15.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.1255, allocations: 25.7 kB / 396.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.317e-05/0.1256, allocations: 96.58 kB / 396.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.1256, allocations: 3.906 kB / 396.6 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/0.1257, allocations: 29.7 kB / 396.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1258, allocations: 318.8 kB / 396.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.337e-05/0.1259, allocations: 15.98 kB / 397 MB, free: 14.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.516e-05/0.126, allocations: 44.28 kB / 397 MB, free: 14.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001081/0.1261, allocations: 64.22 kB / 397.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.1261, allocations: 0 / 397.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001453/0.1262, allocations: 93.48 kB / 397.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.1263, allocations: 4 kB / 397.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.1263, allocations: 0 / 397.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1263, allocations: 4 kB / 397.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.202e-05/0.1264, allocations: 11.98 kB / 397.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.1264, allocations: 4 kB / 397.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.613e-05/0.1265, allocations: 7.875 kB / 397.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.236e-06/0.1265, allocations: 4 kB / 397.2 MB, free: 14.42 MB / 302.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.328e-05/0.1266, allocations: 125.8 kB / 397.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.159e-05/0.1267, allocations: 57.61 kB / 397.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.1268, allocations: 15.86 kB / 397.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.1268, allocations: 0 / 397.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.1268, allocations: 4 kB / 397.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.1268, allocations: 3.938 kB / 397.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.127, allocations: 177.6 kB / 397.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.127, allocations: 0 / 397.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.62e-05/0.1271, allocations: 19.94 kB / 397.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.044e-06/0.1271, allocations: 0 / 397.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.1271, allocations: 15.98 kB / 397.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.1271, allocations: 0 / 397.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1271, allocations: 0 / 397.6 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002032/0.1273, allocations: 194 kB / 397.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.771e-05/0.1274, allocations: 100.9 kB / 397.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.995e-05/0.1275, allocations: 4 kB / 397.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.338e-05/0.1275, allocations: 4 kB / 397.9 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.605e-05/0.1276, allocations: 11.86 kB / 397.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.304e-06/0.1276, allocations: 4 kB / 397.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.388e-05/0.1277, allocations: 104 kB / 398 MB, free: 13.49 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1277, allocations: 0 / 398 MB, free: 13.49 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002384/0.1279, allocations: 15.98 kB / 398 MB, free: 13.47 MB / 302.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.0001092/0.1281, allocations: 99.44 kB / 398.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001789/0.1282, allocations: 39.92 kB / 398.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1283, allocations: 0 / 398.2 MB, free: 13.33 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.409e-05/0.1283, allocations: 15.92 kB / 398.2 MB, free: 13.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004927/0.1288, allocations: 40.52 kB / 398.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003946/0.1292, allocations: 226.5 kB / 398.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.1296, allocations: 0.7078 MB / 399.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.08e-05/0.1297, allocations: 11.78 kB / 399.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.244e-05/0.1297, allocations: 11.44 kB / 399.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1297, allocations: 0 / 399.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of Templates: time 0.003156/0.1329, allocations: 0.6912 MB / 399.9 MB, free: 11.57 MB / 302.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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches