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.001523/0.001523, allocations: 186 kB / 16.44 MB, free: 5.691 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.94/1.94, allocations: 205.4 MB / 222.6 MB, free: 9.129 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.001166/0.001165, allocations: 92.36 kB / 270.9 MB, free: 8.371 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.1015/0.1015, allocations: 12.6 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005294/0.0005294, allocations: 20 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08774, allocations: 50.37 MB / 442.4 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4194/0.5072, allocations: 77.41 MB / 0.5076 GB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.5075, allocations: 76.19 kB / 0.5076 GB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002972/0.5105, allocations: 0.8649 MB / 0.5085 GB, free: 12.43 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.5106, allocations: 0 / 0.5085 GB, free: 12.43 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.5106, allocations: 0.5938 kB / 0.5085 GB, free: 12.43 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.0003539/0.5109, allocations: 344.5 kB / 0.5088 GB, free: 12.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.511, allocations: 7.688 kB / 0.5088 GB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.464e-05/0.5111, allocations: 7.688 kB / 0.5088 GB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.5112, allocations: 168.3 kB / 0.509 GB, free: 11.88 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 0.00014/0.5114, allocations: 51.75 kB / 0.509 GB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.664e-05/0.5114, allocations: 0 / 0.509 GB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.5117, allocations: 131.5 kB / 0.5092 GB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.5118, allocations: 0 / 0.5092 GB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.5118, allocations: 5.609 kB / 0.5092 GB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.5118, allocations: 0 / 0.5092 GB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.836e-05/0.5119, allocations: 17.66 kB / 0.5092 GB, free: 11.78 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001261/0.512, allocations: 158.7 kB / 0.5093 GB, free: 11.59 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002201/0.5123, allocations: 144.5 kB / 0.5095 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.756e-06/0.5123, allocations: 3.953 kB / 0.5095 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.643e-05/0.5123, allocations: 33.94 kB / 0.5095 GB, free: 11.42 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.743e-06/0.5123, allocations: 0 / 0.5095 GB, free: 11.42 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002747/0.5126, allocations: 156.4 kB / 0.5097 GB, free: 11.29 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.278e-05/0.5127, allocations: 58.31 kB / 0.5097 GB, free: 11.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.392e-05/0.5128, allocations: 98.89 kB / 0.5098 GB, free: 11.14 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.5128, allocations: 33.61 kB / 0.5099 GB, free: 11.1 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.087e-05/0.5128, allocations: 150.6 kB / 0.51 GB, free: 10.95 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.308e-05/0.5129, allocations: 3.25 kB / 0.51 GB, free: 10.95 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-06/0.5129, allocations: 0 / 0.51 GB, free: 10.95 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.609e-05/0.5129, allocations: 313.6 kB / 0.5103 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.269e-05/0.513, allocations: 11.19 kB / 0.5103 GB, free: 10.64 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.823e-05/0.513, allocations: 37.83 kB / 0.5103 GB, free: 10.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.588e-05/0.5131, allocations: 23.53 kB / 0.5104 GB, free: 10.59 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.5131, allocations: 0 / 0.5104 GB, free: 10.59 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001189/0.5132, allocations: 70.98 kB / 0.5104 GB, free: 10.55 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.5132, allocations: 11.55 kB / 0.5104 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.5133, allocations: 8.031 kB / 0.5105 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.5133, allocations: 3.844 kB / 0.5105 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.104e-05/0.5134, allocations: 7.781 kB / 0.5105 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.5134, allocations: 0 / 0.5105 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.607e-05/0.5134, allocations: 10.45 kB / 0.5105 GB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.833e-06/0.5134, allocations: 0 / 0.5105 GB, free: 10.54 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 () * 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 7.27e-05/0.5135, allocations: 124.8 kB / 0.5106 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.5137, allocations: 58.25 kB / 0.5106 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.839e-05/0.5137, allocations: 7.922 kB / 0.5107 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.5137, allocations: 10.7 kB / 0.5107 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.5137, allocations: 0 / 0.5107 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.5137, allocations: 0 / 0.5107 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.292e-05/0.5138, allocations: 160.2 kB / 0.5108 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.5138, allocations: 0 / 0.5108 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.067e-06/0.5139, allocations: 3.938 kB / 0.5108 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.5139, allocations: 3.984 kB / 0.5108 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.5139, allocations: 3.375 kB / 0.5108 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.5139, allocations: 3.953 kB / 0.5108 GB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.5139, allocations: 0 / 0.5108 GB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001566/0.5141, allocations: 92.22 kB / 0.5109 GB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.549e-05/0.5141, allocations: 77.11 kB / 0.511 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.859e-05/0.5141, allocations: 9.812 kB / 0.511 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.755e-05/0.5142, allocations: 0 / 0.511 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.347e-06/0.5142, allocations: 3.953 kB / 0.511 GB, free: 10 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.5143, allocations: 4.844 kB / 0.511 GB, free: 10 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.457e-05/0.5143, allocations: 85.69 kB / 0.5111 GB, free: 9.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.605e-06/0.5143, allocations: 0 / 0.5111 GB, free: 9.93 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002445/0.5146, allocations: 19.19 kB / 0.5111 GB, free: 9.922 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 () * 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 9.019e-05/0.5147, allocations: 95.44 kB / 0.5112 GB, free: 9.828 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001382/0.5148, allocations: 39.2 kB / 0.5112 GB, free: 9.824 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.5148, allocations: 0 / 0.5112 GB, free: 9.824 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.002e-06/0.5148, allocations: 0 / 0.5112 GB, free: 9.824 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006245/0.5155, allocations: 0.7224 MB / 0.5119 GB, free: 9.137 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003192/0.5158, allocations: 154.1 kB / 0.5121 GB, free: 8.996 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000129/0.516, allocations: 0.6848 MB / 0.5128 GB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.385e-05/0.516, allocations: 7.438 kB / 0.5128 GB, free: 8.293 MB / 330.7 MB Notification: Performance of SimCode: time 7.42e-07/0.516, allocations: 0 / 0.5128 GB, free: 8.293 MB / 330.7 MB Notification: Performance of Templates: time 0.002449/0.5185, allocations: 0.7567 MB / 0.5135 GB, free: 8.066 MB / 330.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