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.005969/0.005969, allocations: 88.56 kB / 15.91 MB, free: 6.309 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.001174/0.001174, allocations: 199.7 kB / 16.83 MB, free: 6.238 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.627/1.627, allocations: 205.1 MB / 222.7 MB, free: 4.723 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.08029/0.08029, allocations: 12.6 MB / 282.6 MB, free: 8.84 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.001876/0.001876, allocations: 79.89 kB / 342.8 MB, free: 21.2 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1213, allocations: 49.39 MB / 392.2 MB, free: 3.723 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold): time 0.003747/0.1251, allocations: 1.656 MB / 393.8 MB, free: 2.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001067/0.1262, allocations: 0.5308 MB / 394.4 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001472/0.1264, allocations: 8 kB / 394.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.294e-05/0.1265, allocations: 7.875 kB / 394.4 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001731/0.1267, allocations: 11.92 kB / 394.4 MB, free: 1.48 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003816/0.1271, allocations: 47.89 kB / 394.4 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.1272, allocations: 43.86 kB / 394.5 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.1274, allocations: 19.92 kB / 394.5 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.555e-05/0.1275, allocations: 27.8 kB / 394.5 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.48e-05/0.1275, allocations: 31.84 kB / 394.6 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.222e-05/0.1276, allocations: 4 kB / 394.6 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.462e-05/0.1276, allocations: 0 / 394.6 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.655e-05/0.1277, allocations: 19.92 kB / 394.6 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.494e-05/0.1277, allocations: 23.81 kB / 394.6 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00013/0.1279, allocations: 59.73 kB / 394.7 MB, free: 1.207 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.1279, allocations: 0 / 394.7 MB, free: 1.207 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.1279, allocations: 0 / 394.7 MB, free: 1.207 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.009e-06/0.1279, allocations: 0 / 394.7 MB, free: 1.207 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.0005954/0.1285, allocations: 387.4 kB / 395.1 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.1286, allocations: 8.031 kB / 395.1 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.112e-05/0.1286, allocations: 8.844 kB / 395.1 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002769/0.1289, allocations: 216.5 kB / 395.3 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.1289, allocations: 4.375 kB / 395.3 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.104e-05/0.129, allocations: 12.12 kB / 395.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003409/0.1293, allocations: 130.7 kB / 395.4 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.1293, allocations: 0 / 395.4 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1293, allocations: 0 / 395.4 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1294, allocations: 0 / 395.4 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.721e-05/0.1295, allocations: 27.92 kB / 395.4 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004502/0.1299, allocations: 295.3 kB / 395.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001402/0.1301, allocations: 90.36 kB / 395.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.24e-05/0.1302, allocations: 51.55 kB / 395.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.1302, allocations: 0 / 395.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.1302, allocations: 34.5 kB / 395.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.453e-06/0.1303, allocations: 4 kB / 395.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003152/0.1306, allocations: 101.4 kB / 396 MB, free: 15.63 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.01e-05/0.1307, allocations: 136.5 kB / 396.1 MB, free: 15.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.1308, allocations: 141.8 kB / 396.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.1308, allocations: 25.7 kB / 396.3 MB, free: 15.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.5e-05/0.1309, allocations: 100.6 kB / 396.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.1309, allocations: 3.906 kB / 396.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.323e-05/0.131, allocations: 21.7 kB / 396.4 MB, free: 15.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1311, allocations: 318.8 kB / 396.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.356e-05/0.1312, allocations: 19.92 kB / 396.8 MB, free: 14.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.977e-05/0.1313, allocations: 40.28 kB / 396.8 MB, free: 14.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001056/0.1314, allocations: 64.22 kB / 396.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.1314, allocations: 0 / 396.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001747/0.1316, allocations: 85.45 kB / 396.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1316, allocations: 8 kB / 397 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.1316, allocations: 0 / 397 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1316, allocations: 3.938 kB / 397 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.335e-05/0.1317, allocations: 19.92 kB / 397 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.1317, allocations: 128 / 397 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.582e-05/0.1318, allocations: 15.88 kB / 397 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.1318, allocations: 4 kB / 397 MB, free: 14.54 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.726e-05/0.1319, allocations: 122 kB / 397.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001008/0.132, allocations: 61.55 kB / 397.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.952e-05/0.1321, allocations: 15.86 kB / 397.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.1321, allocations: 0 / 397.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1321, allocations: 0 / 397.2 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.1321, allocations: 7.938 kB / 397.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002032/0.1323, allocations: 173.6 kB / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1323, allocations: 0 / 397.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.813e-05/0.1324, allocations: 12 kB / 397.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.1324, allocations: 8.047 kB / 397.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.1324, allocations: 4 kB / 397.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.1324, allocations: 4 kB / 397.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.1325, allocations: 0 / 397.4 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002258/0.1327, allocations: 201.9 kB / 397.6 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.113e-05/0.1328, allocations: 92.91 kB / 397.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.109e-05/0.1328, allocations: 4 kB / 397.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.302e-05/0.1329, allocations: 4 kB / 397.7 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.143e-05/0.1329, allocations: 11.92 kB / 397.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.949e-06/0.1329, allocations: 0 / 397.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.18e-05/0.133, allocations: 112 kB / 397.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.133, allocations: 0 / 397.8 MB, free: 13.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002367/0.1333, allocations: 12 kB / 397.8 MB, free: 13.61 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.0001076/0.1334, allocations: 99.19 kB / 397.9 MB, free: 13.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001651/0.1336, allocations: 39.92 kB / 398 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1336, allocations: 4 kB / 398 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.302e-05/0.1336, allocations: 7.984 kB / 398 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004513/0.1341, allocations: 43.89 kB / 398 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004118/0.1345, allocations: 228.1 kB / 398.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002937/0.1348, allocations: 0.7004 MB / 398.9 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.307e-05/0.1349, allocations: 11.77 kB / 399 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.931e-05/0.1349, allocations: 7.438 kB / 399 MB, free: 12.41 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1349, allocations: 0 / 399 MB, free: 12.41 MB / 302.1 MB Notification: Performance of Templates: time 0.002946/0.1379, allocations: 0.6693 MB / 399.6 MB, free: 11.74 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