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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009115/0.0009115, allocations: 180.7 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.579/1.579, allocations: 205.4 MB / 221.9 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 94.86 kB / 270.3 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07878/0.07878, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004346/0.0004347, allocations: 13.69 kB / 392 MB, free: 54.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1222, allocations: 50.37 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.119/0.2413, allocations: 78.55 MB / 0.5087 GB, free: 12.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002801/0.2416, allocations: 75.95 kB / 0.5088 GB, free: 12.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004398/0.246, allocations: 1.504 MB / 0.5103 GB, free: 10.7 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.537e-06/0.2461, allocations: 0 / 0.5103 GB, free: 10.7 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.168e-05/0.2461, allocations: 0 / 0.5103 GB, free: 10.7 MB / 362.7 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.000494/0.2466, allocations: 374.9 kB / 0.5106 GB, free: 10.29 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.2466, allocations: 8.031 kB / 0.5106 GB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.404e-05/0.2467, allocations: 11.84 kB / 0.5106 GB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002692/0.247, allocations: 206.7 kB / 0.5108 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.247, allocations: 8 kB / 0.5108 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.713e-05/0.247, allocations: 8 kB / 0.5108 GB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003141/0.2473, allocations: 125.9 kB / 0.511 GB, free: 9.863 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.2474, allocations: 4 kB / 0.511 GB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.2474, allocations: 4 kB / 0.511 GB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.67e-06/0.2474, allocations: 0 / 0.511 GB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001022/0.2475, allocations: 31.92 kB / 0.511 GB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004933/0.248, allocations: 357.9 kB / 0.5113 GB, free: 9.418 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.2483, allocations: 160.8 kB / 0.5115 GB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.236e-05/0.2483, allocations: 8.078 kB / 0.5115 GB, free: 9.207 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.2483, allocations: 38.62 kB / 0.5115 GB, free: 9.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.583e-06/0.2484, allocations: 0 / 0.5115 GB, free: 9.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003923/0.2488, allocations: 93.52 kB / 0.5116 GB, free: 9.062 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.2489, allocations: 115 kB / 0.5117 GB, free: 8.926 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.249, allocations: 133.2 kB / 0.5119 GB, free: 8.785 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.2491, allocations: 25.7 kB / 0.5119 GB, free: 8.754 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.183e-05/0.2491, allocations: 88.33 kB / 0.512 GB, free: 8.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.739e-05/0.2491, allocations: 7.906 kB / 0.512 GB, free: 8.652 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.817e-06/0.2491, allocations: 0 / 0.512 GB, free: 8.652 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.2493, allocations: 326.8 kB / 0.5123 GB, free: 8.324 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.073e-05/0.2494, allocations: 11.98 kB / 0.5123 GB, free: 8.312 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.423e-05/0.2494, allocations: 53.73 kB / 0.5124 GB, free: 8.246 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.256e-05/0.2495, allocations: 23.94 kB / 0.5124 GB, free: 8.223 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2495, allocations: 0 / 0.5124 GB, free: 8.223 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001571/0.2497, allocations: 89.55 kB / 0.5125 GB, free: 8.129 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.2497, allocations: 8 kB / 0.5125 GB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.56e-06/0.2497, allocations: 160 / 0.5125 GB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/0.2497, allocations: 7.984 kB / 0.5125 GB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.837e-05/0.2498, allocations: 8 kB / 0.5125 GB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.009e-05/0.2499, allocations: 7.922 kB / 0.5125 GB, free: 8.098 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.038e-05/0.2499, allocations: 12.12 kB / 0.5125 GB, free: 8.086 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.2499, allocations: 7.984 kB / 0.5125 GB, free: 8.078 MB / 362.7 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.0001038/0.25, allocations: 126 kB / 0.5126 GB, free: 7.945 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.106e-05/0.2501, allocations: 49.59 kB / 0.5127 GB, free: 7.891 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.928e-05/0.2502, allocations: 16.19 kB / 0.5127 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.2502, allocations: 0 / 0.5127 GB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.731e-05/0.2502, allocations: 4 kB / 0.5127 GB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2502, allocations: 0 / 0.5127 GB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002302/0.2505, allocations: 185.5 kB / 0.5129 GB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2505, allocations: 4 kB / 0.5129 GB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.969e-05/0.2505, allocations: 15.92 kB / 0.5129 GB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.2506, allocations: 0 / 0.5129 GB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.2506, allocations: 4 kB / 0.5129 GB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2506, allocations: 0 / 0.5129 GB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2506, allocations: 0 / 0.5129 GB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002662/0.2509, allocations: 287 kB / 0.5132 GB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.03e-05/0.2509, allocations: 96.94 kB / 0.5133 GB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.903e-05/0.251, allocations: 0 / 0.5133 GB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001413/0.2511, allocations: 12.05 kB / 0.5133 GB, free: 7.176 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.854e-05/0.2512, allocations: 7.938 kB / 0.5133 GB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.722e-05/0.2512, allocations: 7.953 kB / 0.5133 GB, free: 7.16 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.863e-05/0.2513, allocations: 107.2 kB / 0.5134 GB, free: 7.055 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2513, allocations: 0 / 0.5134 GB, free: 7.055 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002429/0.2515, allocations: 12 kB / 0.5134 GB, free: 7.043 MB / 362.7 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.0001001/0.2516, allocations: 95.25 kB / 0.5135 GB, free: 6.941 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001617/0.2518, allocations: 47.91 kB / 0.5135 GB, free: 6.895 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.2518, allocations: 4.25 kB / 0.5136 GB, free: 6.891 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.187e-05/0.2518, allocations: 11.94 kB / 0.5136 GB, free: 6.879 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.2521, allocations: 39.7 kB / 0.5136 GB, free: 6.844 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003805/0.2525, allocations: 207.1 kB / 0.5138 GB, free: 6.602 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000291/0.2528, allocations: 0.6965 MB / 0.5145 GB, free: 5.879 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.176e-05/0.2529, allocations: 4.188 kB / 0.5145 GB, free: 5.875 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.017e-05/0.2529, allocations: 7.438 kB / 0.5145 GB, free: 5.867 MB / 362.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2529, allocations: 0 / 0.5145 GB, free: 5.867 MB / 362.7 MB Notification: Performance of Templates: time 0.002583/0.2555, allocations: 0.5742 MB / 0.5151 GB, free: 5.305 MB / 362.7 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