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.001242/0.001242, allocations: 96.7 kB / 15.74 MB, free: 424 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002167/0.002167, allocations: 168.2 kB / 16.62 MB, free: 6.434 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.755/1.755, allocations: 205.4 MB / 222.8 MB, free: 5.859 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.09232/0.09232, allocations: 12.6 MB / 283.7 MB, free: 8.918 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.001081/0.001081, allocations: 20 kB / 344.5 MB, free: 21.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1332, allocations: 50.38 MB / 394.9 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002266/0.1356, allocations: 1.283 MB / 396.2 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008956/0.1365, allocations: 0.5078 MB / 396.7 MB, free: 1 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.776e-05/0.1366, allocations: 4 kB / 396.7 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.24e-05/0.1367, allocations: 3.938 kB / 396.7 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001423/0.1368, allocations: 15.92 kB / 396.7 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002784/0.1371, allocations: 43.83 kB / 396.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.634e-05/0.1372, allocations: 47.84 kB / 396.8 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.643e-05/0.1373, allocations: 8.188 kB / 396.8 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.703e-05/0.1374, allocations: 23.84 kB / 396.9 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.837e-05/0.1375, allocations: 19.92 kB / 396.9 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.978e-05/0.1375, allocations: 8 kB / 396.9 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.181e-05/0.1375, allocations: 0 / 396.9 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.111e-05/0.1376, allocations: 15.92 kB / 396.9 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.688e-05/0.1376, allocations: 37.64 kB / 396.9 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.038e-05/0.1377, allocations: 35.92 kB / 397 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.255e-06/0.1377, allocations: 4 kB / 397 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1377, allocations: 0 / 397 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.1377, allocations: 0 / 397 MB, free: 0.7305 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.0005238/0.1383, allocations: 367.3 kB / 397.3 MB, free: 332 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.1383, allocations: 16.03 kB / 397.3 MB, free: 316 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.131e-05/0.1384, allocations: 7.906 kB / 397.4 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002358/0.1386, allocations: 198.7 kB / 397.5 MB, free: 68 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.1386, allocations: 7.938 kB / 397.6 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.665e-05/0.1387, allocations: 0 / 397.6 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003601/0.139, allocations: 137.9 kB / 397.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.139, allocations: 4 kB / 397.7 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.1391, allocations: 3.938 kB / 397.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.132e-06/0.1391, allocations: 0 / 397.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.611e-05/0.1392, allocations: 31.92 kB / 397.7 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004387/0.1396, allocations: 282.5 kB / 398 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002598/0.1399, allocations: 160.8 kB / 398.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.661e-05/0.14, allocations: 46.69 kB / 398.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.654e-05/0.14, allocations: 0 / 398.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.611e-05/0.1401, allocations: 38.5 kB / 398.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.282e-06/0.1401, allocations: 0 / 398.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003204/0.1404, allocations: 101.5 kB / 398.3 MB, free: 15.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.906e-05/0.1405, allocations: 106.8 kB / 398.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.1407, allocations: 146.1 kB / 398.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.807e-05/0.1407, allocations: 25.7 kB / 398.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.661e-05/0.1408, allocations: 88.33 kB / 398.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.1408, allocations: 8.156 kB / 398.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.947e-06/0.1408, allocations: 4 kB / 398.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.141, allocations: 322.8 kB / 399 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.954e-05/0.141, allocations: 15.92 kB / 399 MB, free: 14.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.898e-05/0.1411, allocations: 44.28 kB / 399.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.911e-05/0.1412, allocations: 24 kB / 399.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1412, allocations: 0 / 399.1 MB, free: 14.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001647/0.1414, allocations: 85.55 kB / 399.2 MB, free: 14.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1414, allocations: 9.25 kB / 399.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.1414, allocations: 4.125 kB / 399.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1414, allocations: 3.984 kB / 399.2 MB, free: 14.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.574e-05/0.1415, allocations: 15.94 kB / 399.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.1415, allocations: 160 / 399.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.365e-05/0.1416, allocations: 15.86 kB / 399.2 MB, free: 14.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.1416, allocations: 11.97 kB / 399.3 MB, free: 14.13 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.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001064/0.1417, allocations: 121.7 kB / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.463e-05/0.1418, allocations: 53.59 kB / 399.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.77e-05/0.1418, allocations: 16.25 kB / 399.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.1419, allocations: 0 / 399.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.424e-06/0.1419, allocations: 4 kB / 399.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.1419, allocations: 4 kB / 399.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002041/0.1421, allocations: 181.6 kB / 399.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1421, allocations: 0 / 399.6 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.579e-05/0.1422, allocations: 11.98 kB / 399.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1422, allocations: 3.938 kB / 399.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.065e-05/0.1422, allocations: 4 kB / 399.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1422, allocations: 3.938 kB / 399.6 MB, free: 13.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.1422, allocations: 4 kB / 399.7 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002101/0.1424, allocations: 185.4 kB / 399.8 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.405e-05/0.1425, allocations: 97 kB / 399.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.082e-05/0.1425, allocations: 3.984 kB / 399.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.418e-05/0.1426, allocations: 15.98 kB / 399.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.255e-05/0.1427, allocations: 0 / 399.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.132e-06/0.1427, allocations: 4 kB / 400 MB, free: 13.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.764e-05/0.1428, allocations: 111.2 kB / 400.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.1428, allocations: 0 / 400.1 MB, free: 13.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002321/0.143, allocations: 8 kB / 400.1 MB, free: 13.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001072/0.1431, allocations: 95.19 kB / 400.2 MB, free: 13.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000179/0.1433, allocations: 55.91 kB / 400.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.1433, allocations: 0 / 400.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.229e-05/0.1434, allocations: 12 kB / 400.2 MB, free: 13.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003887/0.1438, allocations: 27.95 kB / 400.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003925/0.1442, allocations: 223.2 kB / 400.5 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.1445, allocations: 0.6926 MB / 401.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.608e-05/0.1445, allocations: 4.188 kB / 401.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.1446, allocations: 15.44 kB / 401.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1446, allocations: 0 / 401.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of Templates: time 0.003049/0.1476, allocations: 0.5633 MB / 401.7 MB, free: 11.46 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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