Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.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.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001517/0.001517, allocations: 182.4 kB / 15.8 MB, free: 6.336 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.687/1.687, 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.001008/0.001008, allocations: 94.86 kB / 270.3 MB, free: 13.34 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.07321/0.07321, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004302/0.0004302, allocations: 14 kB / 392 MB, free: 54.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1214, allocations: 50.37 MB / 442.4 MB, free: 10.91 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1135/0.2349, allocations: 77.41 MB / 0.5076 GB, free: 13.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002807/0.2353, allocations: 83.94 kB / 0.5077 GB, free: 13.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002586/0.2379, allocations: 0.8656 MB / 0.5085 GB, free: 12.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.404e-06/0.2379, allocations: 4 kB / 0.5085 GB, free: 12.44 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.181e-05/0.2379, allocations: 0 / 0.5085 GB, free: 12.44 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004387/0.2384, allocations: 339.3 kB / 0.5088 GB, free: 12.06 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.073e-05/0.2384, allocations: 8.031 kB / 0.5089 GB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.986e-05/0.2385, allocations: 7.906 kB / 0.5089 GB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.2387, allocations: 175.1 kB / 0.509 GB, free: 11.84 MB / 362.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001694/0.2389, allocations: 41.39 kB / 0.5091 GB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.793e-05/0.2389, allocations: 11.94 kB / 0.5091 GB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003128/0.2393, allocations: 123.2 kB / 0.5092 GB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.2393, allocations: 0 / 0.5092 GB, free: 11.65 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.2393, allocations: 7.984 kB / 0.5092 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.2393, allocations: 0 / 0.5092 GB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.657e-05/0.2394, allocations: 19.94 kB / 0.5092 GB, free: 11.62 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001804/0.2396, allocations: 157.7 kB / 0.5094 GB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002164/0.2398, allocations: 143.8 kB / 0.5095 GB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.2398, allocations: 7.953 kB / 0.5095 GB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.2399, allocations: 30.56 kB / 0.5095 GB, free: 11.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.483e-06/0.2399, allocations: 0 / 0.5095 GB, free: 11.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002654/0.2401, allocations: 154.8 kB / 0.5097 GB, free: 11.03 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.098e-05/0.2402, allocations: 55.41 kB / 0.5098 GB, free: 10.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.854e-05/0.2403, allocations: 105 kB / 0.5099 GB, free: 10.85 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.2403, allocations: 25.7 kB / 0.5099 GB, free: 10.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.087e-05/0.2404, allocations: 88.12 kB / 0.51 GB, free: 10.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.2404, allocations: 7.984 kB / 0.51 GB, free: 10.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-06/0.2404, allocations: 0 / 0.51 GB, free: 10.72 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.2406, allocations: 314.8 kB / 0.5103 GB, free: 10.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.605e-05/0.2406, allocations: 4 kB / 0.5103 GB, free: 10.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.899e-05/0.2406, allocations: 44.28 kB / 0.5103 GB, free: 10.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.474e-05/0.2407, allocations: 19.94 kB / 0.5103 GB, free: 10.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2407, allocations: 0 / 0.5103 GB, free: 10.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001075/0.2408, allocations: 69.53 kB / 0.5104 GB, free: 10.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.2408, allocations: 8.109 kB / 0.5104 GB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2408, allocations: 8 kB / 0.5104 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.2408, allocations: 0 / 0.5104 GB, free: 10.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.197e-05/0.2409, allocations: 11.88 kB / 0.5104 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.2409, allocations: 4 kB / 0.5104 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.439e-05/0.2409, allocations: 0 / 0.5104 GB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.241, allocations: 7.984 kB / 0.5104 GB, free: 10.21 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: 7 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * 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 8.613e-05/0.2411, allocations: 125.5 kB / 0.5106 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.2412, allocations: 65.62 kB / 0.5106 GB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.74e-05/0.2412, allocations: 11.92 kB / 0.5106 GB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.2412, allocations: 448 / 0.5106 GB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2412, allocations: 0 / 0.5106 GB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.2412, allocations: 0 / 0.5106 GB, free: 9.996 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.2414, allocations: 165.8 kB / 0.5108 GB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2414, allocations: 4 kB / 0.5108 GB, free: 9.781 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.865e-06/0.2414, allocations: 3.984 kB / 0.5108 GB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.2414, allocations: 0 / 0.5108 GB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.2414, allocations: 0 / 0.5108 GB, free: 9.777 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.2414, allocations: 3.953 kB / 0.5108 GB, free: 9.773 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.2414, allocations: 3.984 kB / 0.5108 GB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001292/0.2416, allocations: 93.03 kB / 0.5109 GB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.194e-05/0.2416, allocations: 77.11 kB / 0.511 GB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.006e-05/0.2416, allocations: 4 kB / 0.511 GB, free: 9.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.027e-05/0.2417, allocations: 7.938 kB / 0.511 GB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.991e-06/0.2417, allocations: 3.953 kB / 0.511 GB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-06/0.2417, allocations: 7.984 kB / 0.511 GB, free: 9.543 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.085e-05/0.2418, allocations: 83.28 kB / 0.5111 GB, free: 9.461 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2418, allocations: 0 / 0.5111 GB, free: 9.461 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001958/0.242, allocations: 12 kB / 0.5111 GB, free: 9.449 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.000105/0.2421, allocations: 95.25 kB / 0.5112 GB, free: 9.344 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000121/0.2422, allocations: 31.92 kB / 0.5112 GB, free: 9.312 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2422, allocations: 0 / 0.5112 GB, free: 9.312 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.2422, allocations: 0 / 0.5112 GB, free: 9.312 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006638/0.2429, allocations: 0.7261 MB / 0.5119 GB, free: 8.562 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003311/0.2432, allocations: 133.5 kB / 0.512 GB, free: 8.406 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.2435, allocations: 0.6887 MB / 0.5127 GB, free: 7.691 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.106e-05/0.2436, allocations: 4.172 kB / 0.5127 GB, free: 7.684 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.498e-05/0.2436, allocations: 15.38 kB / 0.5127 GB, free: 7.668 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.2436, allocations: 4.031 kB / 0.5127 GB, free: 7.664 MB / 362.7 MB Notification: Performance of Templates: time 0.002576/0.2462, allocations: 0.6048 MB / 0.5133 GB, free: 7.07 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches