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.001061/0.001061, allocations: 182.4 kB / 13.23 MB, free: 2.086 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.495/1.495, allocations: 205.2 MB / 219 MB, free: 9.199 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.0008639/0.0008639, allocations: 91.83 kB / 267.1 MB, free: 9.277 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0677/0.0677, allocations: 12.59 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.888e-05/3.89e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07995/0.08001, allocations: 50.37 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2972/0.3773, allocations: 77.32 MB / 0.5017 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.3775, allocations: 71.06 kB / 0.5017 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002026/0.3795, allocations: 0.863 MB / 0.5026 GB, free: 11.6 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3795, allocations: 3.375 kB / 0.5026 GB, free: 11.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.719e-06/0.3796, allocations: 0 / 0.5026 GB, free: 11.6 MB / 330.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.0002331/0.3798, allocations: 336.2 kB / 0.5029 GB, free: 11.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.3798, allocations: 11.38 kB / 0.5029 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.122e-05/0.3799, allocations: 7.719 kB / 0.5029 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000118/0.38, allocations: 176.8 kB / 0.5031 GB, free: 11.05 MB / 330.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 9.302e-05/0.3801, allocations: 46.36 kB / 0.5031 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.3801, allocations: 0 / 0.5031 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002159/0.3803, allocations: 121.9 kB / 0.5032 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.3804, allocations: 4 kB / 0.5032 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.3804, allocations: 0 / 0.5032 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.3804, allocations: 0 / 0.5032 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.696e-05/0.3804, allocations: 20.95 kB / 0.5033 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.057e-05/0.3805, allocations: 156.1 kB / 0.5034 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.3807, allocations: 141.7 kB / 0.5035 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.965e-05/0.3807, allocations: 26.75 kB / 0.5036 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.909e-06/0.3807, allocations: 7.875 kB / 0.5036 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.276e-05/0.3808, allocations: 35.38 kB / 0.5036 GB, free: 10.59 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.522e-06/0.3808, allocations: 3.984 kB / 0.5036 GB, free: 10.58 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001266/0.3809, allocations: 56.3 kB / 0.5037 GB, free: 10.55 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/0.381, allocations: 58.78 kB / 0.5037 GB, free: 10.49 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.225e-05/0.381, allocations: 100.9 kB / 0.5038 GB, free: 10.4 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.105e-06/0.381, allocations: 29.45 kB / 0.5038 GB, free: 10.37 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.973e-05/0.381, allocations: 84.14 kB / 0.5039 GB, free: 10.28 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.268e-05/0.3811, allocations: 10.72 kB / 0.5039 GB, free: 10.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.775e-06/0.3811, allocations: 3.844 kB / 0.5039 GB, free: 10.27 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.22e-05/0.3811, allocations: 317.1 kB / 0.5042 GB, free: 9.961 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.298e-05/0.3811, allocations: 3.844 kB / 0.5042 GB, free: 9.961 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.52e-05/0.3812, allocations: 38.5 kB / 0.5043 GB, free: 9.922 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.352e-05/0.3812, allocations: 15.38 kB / 0.5043 GB, free: 9.918 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3812, allocations: 0 / 0.5043 GB, free: 9.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.511e-05/0.3813, allocations: 72.14 kB / 0.5044 GB, free: 9.879 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.172e-05/0.3813, allocations: 7.766 kB / 0.5044 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.3813, allocations: 4.031 kB / 0.5044 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.3813, allocations: 4 kB / 0.5044 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.889e-05/0.3814, allocations: 3.844 kB / 0.5044 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.3814, allocations: 6.484 kB / 0.5044 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.549e-05/0.3814, allocations: 10.59 kB / 0.5044 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-06/0.3814, allocations: 3.875 kB / 0.5044 GB, free: 9.863 MB / 330.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 4.35e-05/0.3815, allocations: 121.1 kB / 0.5045 GB, free: 9.746 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.125e-05/0.3816, allocations: 57.12 kB / 0.5046 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.089e-05/0.3816, allocations: 8.047 kB / 0.5046 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.3816, allocations: 6.719 kB / 0.5046 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.3816, allocations: 0 / 0.5046 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.3816, allocations: 0 / 0.5046 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.555e-05/0.3817, allocations: 164.7 kB / 0.5047 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.3817, allocations: 0 / 0.5047 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.512e-06/0.3817, allocations: 4 kB / 0.5048 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.3817, allocations: 0 / 0.5048 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.794e-06/0.3817, allocations: 0 / 0.5048 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3817, allocations: 3.953 kB / 0.5048 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.3817, allocations: 2.531 kB / 0.5048 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.82e-05/0.3818, allocations: 93.7 kB / 0.5048 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.984e-05/0.3818, allocations: 84.86 kB / 0.5049 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.635e-05/0.3819, allocations: 0 / 0.5049 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.372e-05/0.3819, allocations: 9.891 kB / 0.5049 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-06/0.3819, allocations: 3.953 kB / 0.5049 GB, free: 9.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.3819, allocations: 0 / 0.5049 GB, free: 9.336 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.28e-05/0.382, allocations: 82.97 kB / 0.505 GB, free: 9.262 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.382, allocations: 3.938 kB / 0.505 GB, free: 9.258 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001825/0.3822, allocations: 7.219 kB / 0.505 GB, free: 9.258 MB / 330.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 6.632e-05/0.3822, allocations: 102.5 kB / 0.5051 GB, free: 9.168 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001002/0.3823, allocations: 31.47 kB / 0.5052 GB, free: 9.164 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.483e-06/0.3823, allocations: 3.844 kB / 0.5052 GB, free: 9.164 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.3824, allocations: 0 / 0.5052 GB, free: 9.164 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003857/0.3827, allocations: 0.7085 MB / 0.5059 GB, free: 8.488 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001577/0.3829, allocations: 92.61 kB / 0.5059 GB, free: 8.406 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.171e-05/0.383, allocations: 0.6843 MB / 0.5066 GB, free: 7.711 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.011e-05/0.383, allocations: 4.031 kB / 0.5066 GB, free: 7.707 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.779e-05/0.3831, allocations: 11.41 kB / 0.5066 GB, free: 7.699 MB / 330.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3831, allocations: 3.938 kB / 0.5066 GB, free: 7.695 MB / 330.7 MB Notification: Performance of Templates: time 0.002024/0.3851, allocations: 0.6215 MB / 0.5072 GB, free: 7.617 MB / 330.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