Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.002221/0.002225, allocations: 181 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.025/2.025, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.001084/0.001084, allocations: 82.7 kB / 267.6 MB, free: 14.11 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.09924/0.09924, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.381e-05/4.407e-05, allocations: 4 kB / 386 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.2975, allocations: 50.37 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1365/0.4341, allocations: 77.32 MB / 0.5016 GB, free: 0.7227 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003116/0.4344, allocations: 75.95 kB / 0.5017 GB, free: 0.6484 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003331/0.4378, allocations: 0.8647 MB / 0.5025 GB, free: 15.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4378, allocations: 0 / 0.5025 GB, free: 15.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.4379, allocations: 0 / 0.5025 GB, free: 15.79 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.0004516/0.4383, allocations: 338.5 kB / 0.5029 GB, free: 15.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.4384, allocations: 8.031 kB / 0.5029 GB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.558e-05/0.4385, allocations: 4 kB / 0.5029 GB, free: 15.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/0.4387, allocations: 179 kB / 0.5031 GB, free: 15.18 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.0001328/0.4388, allocations: 45.52 kB / 0.5031 GB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.134e-05/0.4389, allocations: 8 kB / 0.5031 GB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003579/0.4392, allocations: 127.3 kB / 0.5032 GB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.4393, allocations: 0 / 0.5032 GB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.4393, allocations: 0 / 0.5032 GB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.4393, allocations: 0 / 0.5032 GB, free: 14.99 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.211e-05/0.4394, allocations: 23.92 kB / 0.5032 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001732/0.4396, allocations: 161.7 kB / 0.5034 GB, free: 14.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/0.4398, allocations: 135.8 kB / 0.5035 GB, free: 14.6 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.237e-05/0.4399, allocations: 28.88 kB / 0.5036 GB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.087e-05/0.4399, allocations: 0 / 0.5036 GB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.44, allocations: 34.5 kB / 0.5036 GB, free: 14.52 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.603e-06/0.44, allocations: 3.938 kB / 0.5036 GB, free: 14.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002076/0.4402, allocations: 61.73 kB / 0.5037 GB, free: 14.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.6e-05/0.4403, allocations: 55.41 kB / 0.5037 GB, free: 14.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.4404, allocations: 97 kB / 0.5038 GB, free: 14.29 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.4404, allocations: 33.7 kB / 0.5038 GB, free: 14.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.415e-05/0.4405, allocations: 150.6 kB / 0.504 GB, free: 14.1 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.15e-05/0.4405, allocations: 11.89 kB / 0.504 GB, free: 14.09 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-06/0.4406, allocations: 0 / 0.504 GB, free: 14.09 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001293/0.4407, allocations: 314.8 kB / 0.5043 GB, free: 13.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.265e-05/0.4407, allocations: 4 kB / 0.5043 GB, free: 13.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.81e-05/0.4408, allocations: 36.3 kB / 0.5043 GB, free: 13.71 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.234e-05/0.4409, allocations: 23.92 kB / 0.5043 GB, free: 13.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.4409, allocations: 0 / 0.5043 GB, free: 13.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000137/0.441, allocations: 65.62 kB / 0.5044 GB, free: 13.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.4411, allocations: 8.109 kB / 0.5044 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.4411, allocations: 11.94 kB / 0.5044 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.4411, allocations: 0 / 0.5044 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.463e-05/0.4412, allocations: 4 kB / 0.5044 GB, free: 13.6 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.4412, allocations: 4 kB / 0.5044 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.752e-05/0.4412, allocations: 3.938 kB / 0.5044 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.4413, allocations: 4 kB / 0.5044 GB, free: 13.59 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 () * 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 9.5e-05/0.4414, allocations: 116.7 kB / 0.5046 GB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.4415, allocations: 65.53 kB / 0.5046 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.995e-05/0.4416, allocations: 16.05 kB / 0.5046 GB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.4416, allocations: 0 / 0.5046 GB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.4416, allocations: 3.984 kB / 0.5046 GB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4416, allocations: 0 / 0.5046 GB, free: 13.37 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001281/0.4417, allocations: 157.7 kB / 0.5048 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.4418, allocations: 256 / 0.5048 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.249e-05/0.4418, allocations: 8 kB / 0.5048 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.4418, allocations: 0 / 0.5048 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.134e-05/0.4418, allocations: 0 / 0.5048 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.358e-06/0.4418, allocations: 3.953 kB / 0.5048 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4418, allocations: 0 / 0.5048 GB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001759/0.442, allocations: 97.14 kB / 0.5049 GB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.606e-05/0.4421, allocations: 85 kB / 0.505 GB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.078e-05/0.4421, allocations: 8 kB / 0.505 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.916e-05/0.4422, allocations: 0 / 0.505 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.205e-06/0.4423, allocations: 3.953 kB / 0.505 GB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.4423, allocations: 4 kB / 0.505 GB, free: 12.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.791e-05/0.4423, allocations: 83.28 kB / 0.5051 GB, free: 12.84 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4424, allocations: 3.938 kB / 0.5051 GB, free: 12.84 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002433/0.4426, allocations: 12 kB / 0.5051 GB, free: 12.83 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 () * 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.0001373/0.4428, allocations: 99.23 kB / 0.5052 GB, free: 12.72 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000139/0.4429, allocations: 31.94 kB / 0.5052 GB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4429, allocations: 0 / 0.5052 GB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.263e-06/0.4429, allocations: 0 / 0.5052 GB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008282/0.4438, allocations: 0.7184 MB / 0.5059 GB, free: 11.95 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002897/0.4441, allocations: 110.5 kB / 0.506 GB, free: 11.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.4444, allocations: 0.6887 MB / 0.5067 GB, free: 11.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.876e-05/0.4444, allocations: 11.44 kB / 0.5067 GB, free: 11.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.152e-06/0.4444, allocations: 0 / 0.5067 GB, free: 11.09 MB / 362.7 MB Notification: Performance of Templates: time 0.002785/0.4472, allocations: 0.7336 MB / 0.5074 GB, free: 10.36 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches