Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006404/0.006404, allocations: 93.48 kB / 15.91 MB, free: 6.273 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.001147/0.001147, allocations: 199.7 kB / 16.84 MB, free: 6.188 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.831/1.831, allocations: 205.1 MB / 222.7 MB, free: 4.73 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.08485/0.08485, 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.001616/0.001616, allocations: 80.64 kB / 342.8 MB, free: 21.18 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1296, allocations: 49.39 MB / 392.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003371/0.133, allocations: 1.652 MB / 393.8 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009792/0.134, allocations: 0.5268 MB / 394.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.855e-05/0.1341, allocations: 0 / 394.4 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.98e-05/0.1342, allocations: 7.938 kB / 394.4 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000141/0.1343, allocations: 15.91 kB / 394.4 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.1346, allocations: 39.91 kB / 394.4 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.1347, allocations: 39.92 kB / 394.5 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.1349, allocations: 16.17 kB / 394.5 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.497e-05/0.1349, allocations: 31.78 kB / 394.5 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.024e-05/0.135, allocations: 19.92 kB / 394.5 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.94e-05/0.135, allocations: 8 kB / 394.5 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.415e-05/0.1351, allocations: 0 / 394.5 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.489e-05/0.1351, allocations: 15.92 kB / 394.6 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.176e-05/0.1352, allocations: 31.75 kB / 394.6 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.1353, allocations: 51.8 kB / 394.6 MB, free: 1.227 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1353, allocations: 0 / 394.6 MB, free: 1.227 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.1353, allocations: 0 / 394.6 MB, free: 1.227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.1353, allocations: 0 / 394.6 MB, free: 1.227 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006551/0.136, allocations: 387.4 kB / 395 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.136, allocations: 16.03 kB / 395 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.419e-05/0.1361, allocations: 8.844 kB / 395 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002198/0.1363, allocations: 199.9 kB / 395.2 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.358e-06/0.1363, allocations: 8.375 kB / 395.2 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.1363, allocations: 384 / 395.2 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002937/0.1366, allocations: 138 kB / 395.4 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.1366, allocations: 0 / 395.4 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.1366, allocations: 0 / 395.4 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.1367, allocations: 7.984 kB / 395.4 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.679e-05/0.1368, allocations: 23.92 kB / 395.4 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003829/0.1371, allocations: 282.6 kB / 395.7 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002924/0.1374, allocations: 156.9 kB / 395.8 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.24e-05/0.1375, allocations: 34.62 kB / 395.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.1376, allocations: 7.984 kB / 395.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.606e-05/0.1376, allocations: 42.5 kB / 395.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.1376, allocations: 3.938 kB / 395.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002706/0.1379, allocations: 89.52 kB / 396 MB, free: 15.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.656e-05/0.138, allocations: 111 kB / 396.1 MB, free: 15.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.1381, allocations: 138.2 kB / 396.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.697e-05/0.1381, allocations: 29.7 kB / 396.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.953e-05/0.1382, allocations: 88.14 kB / 396.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.144e-05/0.1382, allocations: 7.891 kB / 396.4 MB, free: 15.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.483e-05/0.1383, allocations: 21.62 kB / 396.4 MB, free: 15.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.1384, allocations: 326.8 kB / 396.7 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.242e-05/0.1385, allocations: 15.94 kB / 396.7 MB, free: 14.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.74e-05/0.1385, allocations: 52.27 kB / 396.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001198/0.1387, allocations: 60.2 kB / 396.8 MB, free: 14.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1387, allocations: 7.938 kB / 396.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001525/0.1388, allocations: 89.55 kB / 396.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/0.1388, allocations: 4 kB / 396.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.1389, allocations: 0 / 396.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.1389, allocations: 4 kB / 396.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.052e-05/0.139, allocations: 12 kB / 397 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.139, allocations: 3.984 kB / 397 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.837e-05/0.139, allocations: 7.906 kB / 397 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.139, allocations: 8.125 kB / 397 MB, free: 14.55 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: 3 (clockToSquareWave.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.000114/0.1392, allocations: 121.7 kB / 397.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.941e-05/0.1393, allocations: 61.53 kB / 397.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.063e-05/0.1393, allocations: 16.23 kB / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1393, allocations: 0 / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1393, allocations: 288 / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.1393, allocations: 4 kB / 397.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.1395, allocations: 169.6 kB / 397.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1396, allocations: 4 kB / 397.3 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.784e-05/0.1396, allocations: 19.97 kB / 397.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1396, allocations: 0 / 397.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.1396, allocations: 0 / 397.4 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.1397, allocations: 4 kB / 397.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1397, allocations: 0 / 397.4 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.1399, allocations: 189 kB / 397.6 MB, free: 13.89 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.418e-05/0.14, allocations: 105 kB / 397.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.921e-05/0.14, allocations: 0 / 397.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.085e-05/0.1401, allocations: 4 kB / 397.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.1402, allocations: 3.938 kB / 397.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.718e-06/0.1402, allocations: 0 / 397.7 MB, free: 13.76 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.911e-05/0.1403, allocations: 111.2 kB / 397.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1403, allocations: 0 / 397.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.1405, allocations: 12 kB / 397.8 MB, free: 13.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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.0001397/0.1406, allocations: 99.19 kB / 397.9 MB, free: 13.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001657/0.1408, allocations: 51.84 kB / 397.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1408, allocations: 0 / 397.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.158e-05/0.1409, allocations: 7.984 kB / 397.9 MB, free: 13.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004184/0.1413, allocations: 31.97 kB / 398 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000412/0.1417, allocations: 211.1 kB / 398.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/0.1421, allocations: 0.6926 MB / 398.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.751e-05/0.1421, allocations: 12.06 kB / 398.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.509e-05/0.1422, allocations: 15.42 kB / 398.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1422, allocations: 0 / 398.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of Templates: time 0.002629/0.1448, allocations: 0.5856 MB / 399.5 MB, free: 11.88 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches