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.001311/0.001311, allocations: 109.7 kB / 16.45 MB, free: 6.488 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.001304/0.001304, allocations: 186 kB / 17.38 MB, free: 5.691 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.646/1.646, 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.07734/0.07734, allocations: 12.6 MB / 283.2 MB, free: 15.38 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.002078/0.002078, allocations: 90.44 kB / 394.2 MB, free: 45.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1241, allocations: 49.42 MB / 443.6 MB, free: 464 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002881/0.127, allocations: 1.575 MB / 445.2 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.1281, allocations: 0.5229 MB / 445.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.966e-05/0.1282, allocations: 4 kB / 445.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.56e-05/0.1282, allocations: 3.938 kB / 445.7 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001575/0.1284, allocations: 7.875 kB / 445.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003304/0.1287, allocations: 63.75 kB / 445.8 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001308/0.1289, allocations: 47.86 kB / 445.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001326/0.129, allocations: 24.08 kB / 445.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.707e-05/0.1291, allocations: 23.92 kB / 445.9 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.702e-05/0.1292, allocations: 19.86 kB / 445.9 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.018e-05/0.1292, allocations: 4 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.53e-05/0.1292, allocations: 4 kB / 445.9 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.341e-05/0.1293, allocations: 19.92 kB / 445.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.225e-05/0.1294, allocations: 35.8 kB / 445.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001469/0.1295, allocations: 55.73 kB / 446 MB, free: 14.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1296, allocations: 0 / 446 MB, free: 14.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1296, allocations: 3.938 kB / 446 MB, free: 14.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1296, allocations: 4 kB / 446 MB, free: 14.02 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005451/0.1301, allocations: 375.2 kB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.1302, allocations: 15.97 kB / 446.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.768e-05/0.1302, allocations: 20.72 kB / 446.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002516/0.1305, allocations: 192.2 kB / 446.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.418e-06/0.1305, allocations: 384 / 446.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.256e-05/0.1305, allocations: 4.375 kB / 446.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002961/0.1308, allocations: 141.9 kB / 446.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.1308, allocations: 3.938 kB / 446.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.1309, allocations: 0 / 446.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.1309, allocations: 0 / 446.7 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.461e-05/0.1309, allocations: 27.97 kB / 446.8 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003784/0.1313, allocations: 282.5 kB / 447 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002585/0.1316, allocations: 164.8 kB / 447.2 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.83e-05/0.1317, allocations: 42.69 kB / 447.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.1317, allocations: 7.984 kB / 447.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.1318, allocations: 34.56 kB / 447.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.182e-06/0.1318, allocations: 0 / 447.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002921/0.1321, allocations: 97.44 kB / 447.4 MB, free: 12.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.919e-05/0.1321, allocations: 106.8 kB / 447.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.1323, allocations: 138.2 kB / 447.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.1323, allocations: 33.95 kB / 447.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.909e-05/0.1324, allocations: 88.12 kB / 447.7 MB, free: 12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.1324, allocations: 7.906 kB / 447.7 MB, free: 12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.004e-05/0.1324, allocations: 21.72 kB / 447.8 MB, free: 11.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001322/0.1326, allocations: 322.7 kB / 448.1 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.947e-05/0.1326, allocations: 15.98 kB / 448.1 MB, free: 11.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.509e-05/0.1327, allocations: 52.28 kB / 448.1 MB, free: 11.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.1328, allocations: 60.22 kB / 448.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.1328, allocations: 0 / 448.2 MB, free: 11.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001731/0.133, allocations: 93.45 kB / 448.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.133, allocations: 4 kB / 448.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.133, allocations: 4 kB / 448.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.1331, allocations: 0 / 448.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.758e-05/0.1331, allocations: 11.98 kB / 448.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.1332, allocations: 7.938 kB / 448.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.618e-05/0.1332, allocations: 3.938 kB / 448.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.319e-05/0.1332, allocations: 4.234 kB / 448.3 MB, free: 11.36 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: 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.0001338/0.1334, allocations: 141.8 kB / 448.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.162e-05/0.1335, allocations: 45.61 kB / 448.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.845e-05/0.1335, allocations: 16.23 kB / 448.5 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.1335, allocations: 4 kB / 448.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.1335, allocations: 0 / 448.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1336, allocations: 0 / 448.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002224/0.1338, allocations: 177.6 kB / 448.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1338, allocations: 0 / 448.7 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.594e-05/0.1339, allocations: 11.94 kB / 448.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.1339, allocations: 0 / 448.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.1339, allocations: 12 kB / 448.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.958e-06/0.1339, allocations: 3.984 kB / 448.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1339, allocations: 0 / 448.7 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002378/0.1341, allocations: 185.1 kB / 448.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.345e-05/0.1342, allocations: 93 kB / 449 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.563e-05/0.1343, allocations: 11.94 kB / 449 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.792e-05/0.1344, allocations: 0 / 449 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.768e-05/0.1344, allocations: 4 kB / 449 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.1344, allocations: 3.984 kB / 449 MB, free: 10.55 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000111/0.1345, allocations: 111.9 kB / 449.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1345, allocations: 0 / 449.1 MB, free: 10.44 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002399/0.1348, allocations: 8 kB / 449.1 MB, free: 10.43 MB / 334.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.0001279/0.1349, allocations: 103.2 kB / 449.2 MB, free: 10.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001941/0.1351, allocations: 51.84 kB / 449.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1351, allocations: 0 / 449.3 MB, free: 10.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.239e-05/0.1352, allocations: 19.92 kB / 449.3 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.1356, allocations: 24.02 kB / 449.3 MB, free: 10.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004252/0.136, allocations: 181.3 kB / 449.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003324/0.1364, allocations: 0.7002 MB / 450.2 MB, free: 9.293 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.026e-05/0.1364, allocations: 11.73 kB / 450.2 MB, free: 9.281 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.298e-05/0.1365, allocations: 11.44 kB / 450.2 MB, free: 9.27 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1365, allocations: 3.938 kB / 450.2 MB, free: 9.266 MB / 334.1 MB Notification: Performance of Templates: time 0.003148/0.1396, allocations: 0.6572 MB / 450.9 MB, free: 8.609 MB / 334.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches