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.001364/0.001365, allocations: 96.36 kB / 15.73 MB, free: 440 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.002194/0.002194, allocations: 177.8 kB / 16.61 MB, free: 6.426 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.591/1.591, allocations: 205.4 MB / 222.8 MB, free: 5.633 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.09367/0.09367, allocations: 12.6 MB / 283.6 MB, free: 8.707 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.001108/0.001108, allocations: 24 kB / 344.5 MB, free: 21.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1328/0.1339, allocations: 50.37 MB / 394.9 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001947/0.1359, allocations: 1.276 MB / 396.2 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008074/0.1367, allocations: 0.4922 MB / 396.7 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.019e-05/0.1368, allocations: 0 / 396.7 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.221e-05/0.1369, allocations: 11.94 kB / 396.7 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.137, allocations: 11.97 kB / 396.7 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000302/0.1373, allocations: 51.81 kB / 396.7 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.72e-05/0.1374, allocations: 31.91 kB / 396.8 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.1375, allocations: 8.172 kB / 396.8 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.642e-05/0.1376, allocations: 23.91 kB / 396.8 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.721e-05/0.1377, allocations: 23.86 kB / 396.8 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.411e-05/0.1377, allocations: 0 / 396.8 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.438e-05/0.1377, allocations: 8 kB / 396.8 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.035e-05/0.1378, allocations: 11.98 kB / 396.8 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.633e-05/0.1378, allocations: 33.64 kB / 396.9 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.246e-05/0.1379, allocations: 35.92 kB / 396.9 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1379, allocations: 0 / 396.9 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1379, allocations: 0 / 396.9 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.774e-06/0.1379, allocations: 0 / 396.9 MB, free: 0.7656 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.0005114/0.1384, allocations: 379.2 kB / 397.3 MB, free: 356 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.1385, allocations: 8.031 kB / 397.3 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.53e-05/0.1385, allocations: 15.84 kB / 397.3 MB, free: 332 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002043/0.1387, allocations: 206.7 kB / 397.5 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.1388, allocations: 0 / 397.5 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.509e-05/0.1388, allocations: 4 kB / 397.5 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.1391, allocations: 137.8 kB / 397.6 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.1391, allocations: 0 / 397.6 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.1391, allocations: 0 / 397.6 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1391, allocations: 0 / 397.6 MB, free: 15.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.079e-05/0.1392, allocations: 31.92 kB / 397.7 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000403/0.1397, allocations: 286.5 kB / 398 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.1399, allocations: 156.9 kB / 398.1 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.399e-05/0.14, allocations: 8.125 kB / 398.1 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.778e-05/0.14, allocations: 38.5 kB / 398.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.563e-06/0.14, allocations: 0 / 398.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003174/0.1403, allocations: 97.5 kB / 398.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.971e-05/0.1404, allocations: 111.1 kB / 398.4 MB, free: 15.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.1406, allocations: 142.1 kB / 398.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.998e-05/0.1406, allocations: 33.64 kB / 398.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.994e-05/0.1407, allocations: 92.27 kB / 398.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.987e-05/0.1407, allocations: 7.906 kB / 398.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-06/0.1407, allocations: 0 / 398.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.1409, allocations: 318.8 kB / 398.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.998e-05/0.1409, allocations: 23.98 kB / 399 MB, free: 14.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.455e-05/0.141, allocations: 40.3 kB / 399 MB, free: 14.38 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.433e-05/0.1411, allocations: 19.98 kB / 399 MB, free: 14.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1411, allocations: 4 kB / 399 MB, free: 14.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001682/0.1413, allocations: 89.55 kB / 399.1 MB, free: 14.26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.1413, allocations: 5.25 kB / 399.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.1413, allocations: 0 / 399.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.1414, allocations: 4 kB / 399.1 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.613e-05/0.1414, allocations: 12.22 kB / 399.1 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.1415, allocations: 8.125 kB / 399.1 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.444e-05/0.1415, allocations: 11.86 kB / 399.2 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.1415, allocations: 0 / 399.2 MB, free: 14.22 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.0001296/0.1417, allocations: 133.7 kB / 399.3 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.921e-05/0.1418, allocations: 57.59 kB / 399.3 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.883e-05/0.1418, allocations: 8.25 kB / 399.3 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.1418, allocations: 4 kB / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1418, allocations: 3.938 kB / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.1418, allocations: 0 / 399.4 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001932/0.142, allocations: 181.6 kB / 399.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.1421, allocations: 0 / 399.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.53e-05/0.1421, allocations: 11.98 kB / 399.5 MB, free: 13.76 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.1421, allocations: 4 kB / 399.5 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-06/0.1421, allocations: 3.938 kB / 399.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1422, allocations: 0 / 399.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1422, allocations: 4 kB / 399.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002224/0.1424, allocations: 212.5 kB / 399.8 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.946e-05/0.1425, allocations: 93 kB / 399.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.278e-05/0.1425, allocations: 4 kB / 399.9 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.193e-05/0.1426, allocations: 7.984 kB / 399.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.1426, allocations: 7.953 kB / 399.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.1426, allocations: 8 kB / 399.9 MB, free: 13.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.519e-05/0.1427, allocations: 111.9 kB / 400 MB, free: 13.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1427, allocations: 3.938 kB / 400 MB, free: 13.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000227/0.143, allocations: 8 kB / 400 MB, free: 13.25 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.0001167/0.1431, allocations: 95.31 kB / 400.1 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001676/0.1433, allocations: 48.11 kB / 400.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.225e-06/0.1433, allocations: 0 / 400.1 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.737e-05/0.1433, allocations: 19.98 kB / 400.2 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003055/0.1436, allocations: 27.95 kB / 400.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004187/0.1441, allocations: 211.2 kB / 400.4 MB, free: 12.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.1444, allocations: 0.6926 MB / 401.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.311e-05/0.1445, allocations: 8.172 kB / 401.1 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.059e-05/0.1445, allocations: 11.44 kB / 401.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of SimCode: time 4.9e-07/0.1445, allocations: 4 kB / 401.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of Templates: time 0.003533/0.1481, allocations: 0.5586 MB / 401.7 MB, free: 11.52 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