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/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/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.0009481/0.0009482, allocations: 181.2 kB / 17.46 MB, free: 4.359 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.267/1.267, allocations: 205.4 MB / 223.6 MB, free: 8.93 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.0007018/0.0007019, allocations: 87.05 kB / 271.9 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06124/0.06124, allocations: 12.2 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003635, allocations: 20 kB / 392.7 MB, free: 67.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06649/0.06687, allocations: 50.28 MB / 443 MB, free: 16.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2287/0.2956, allocations: 77.36 MB / 0.5082 GB, free: 12.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001869/0.2958, allocations: 73.33 kB / 0.5083 GB, free: 12.91 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0018/0.2976, allocations: 0.8666 MB / 0.5091 GB, free: 12.57 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2976, allocations: 3.844 kB / 0.5091 GB, free: 12.57 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.2976, allocations: 0 / 0.5091 GB, free: 12.57 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.0002511/0.2979, allocations: 335.7 kB / 0.5094 GB, free: 12.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.322e-05/0.2979, allocations: 11.5 kB / 0.5094 GB, free: 12.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.126e-05/0.298, allocations: 11.66 kB / 0.5094 GB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001203/0.2981, allocations: 175.3 kB / 0.5096 GB, free: 12.02 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.0001188/0.2982, allocations: 36.73 kB / 0.5096 GB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.2983, allocations: 11.91 kB / 0.5097 GB, free: 11.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002288/0.2985, allocations: 118.5 kB / 0.5098 GB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.2985, allocations: 3.938 kB / 0.5098 GB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.2985, allocations: 6.734 kB / 0.5098 GB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2985, allocations: 0 / 0.5098 GB, free: 11.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.001e-05/0.2986, allocations: 18.25 kB / 0.5098 GB, free: 11.92 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001042/0.2987, allocations: 168.6 kB / 0.51 GB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.2989, allocations: 138.5 kB / 0.5101 GB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.422e-05/0.2989, allocations: 23.78 kB / 0.5101 GB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.977e-06/0.2989, allocations: 0 / 0.5101 GB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.242e-05/0.2989, allocations: 34.5 kB / 0.5101 GB, free: 11.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.563e-06/0.299, allocations: 3.984 kB / 0.5102 GB, free: 11.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001634/0.2991, allocations: 85.12 kB / 0.5102 GB, free: 11.51 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.2992, allocations: 59.97 kB / 0.5103 GB, free: 11.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.173e-05/0.2992, allocations: 104.4 kB / 0.5104 GB, free: 11.35 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.097e-06/0.2992, allocations: 29.02 kB / 0.5104 GB, free: 11.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.545e-05/0.2993, allocations: 83.48 kB / 0.5105 GB, free: 11.24 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.189e-05/0.2993, allocations: 10.2 kB / 0.5105 GB, free: 11.23 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.786e-06/0.2993, allocations: 0 / 0.5105 GB, free: 11.23 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.207e-05/0.2993, allocations: 318.2 kB / 0.5108 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.277e-05/0.2993, allocations: 14.59 kB / 0.5108 GB, free: 10.91 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.238e-05/0.2994, allocations: 31.27 kB / 0.5109 GB, free: 10.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.824e-05/0.2994, allocations: 57.86 kB / 0.5109 GB, free: 10.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.2994, allocations: 0 / 0.5109 GB, free: 10.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.323e-05/0.2995, allocations: 69.45 kB / 0.511 GB, free: 10.79 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.2995, allocations: 7.781 kB / 0.511 GB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2996, allocations: 7.359 kB / 0.511 GB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.2996, allocations: 0 / 0.511 GB, free: 10.79 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.654e-05/0.2996, allocations: 7.812 kB / 0.511 GB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.2996, allocations: 4.125 kB / 0.511 GB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.281e-05/0.2997, allocations: 8 kB / 0.511 GB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-06/0.2997, allocations: 3.719 kB / 0.511 GB, free: 10.77 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 4.929e-05/0.2997, allocations: 123.5 kB / 0.5111 GB, free: 10.65 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.91e-05/0.2998, allocations: 69.34 kB / 0.5112 GB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.874e-05/0.2998, allocations: 7.406 kB / 0.5112 GB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.2998, allocations: 3.938 kB / 0.5112 GB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.2998, allocations: 0 / 0.5112 GB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.2999, allocations: 0 / 0.5112 GB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.053e-05/0.2999, allocations: 161.7 kB / 0.5114 GB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2999, allocations: 4 kB / 0.5114 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.851e-06/0.2999, allocations: 0 / 0.5114 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.2999, allocations: 3.938 kB / 0.5114 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.056e-06/0.2999, allocations: 3.688 kB / 0.5114 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.3, allocations: 6.75 kB / 0.5114 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3, allocations: 0 / 0.5114 GB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.098e-05/0.3001, allocations: 78.02 kB / 0.5115 GB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.76e-05/0.3001, allocations: 84.89 kB / 0.5115 GB, free: 10.25 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.3001, allocations: 14.3 kB / 0.5115 GB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.948e-05/0.3002, allocations: 7.781 kB / 0.5116 GB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.685e-06/0.3002, allocations: 0 / 0.5116 GB, free: 10.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.3002, allocations: 0 / 0.5116 GB, free: 10.24 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.255e-05/0.3002, allocations: 93.45 kB / 0.5116 GB, free: 10.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.3002, allocations: 3.938 kB / 0.5116 GB, free: 10.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001719/0.3004, allocations: 11.56 kB / 0.5117 GB, free: 10.15 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 6.45e-05/0.3005, allocations: 94.66 kB / 0.5118 GB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.423e-05/0.3006, allocations: 38.23 kB / 0.5118 GB, free: 10.06 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.3006, allocations: 0 / 0.5118 GB, free: 10.06 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.82e-07/0.3006, allocations: 0 / 0.5118 GB, free: 10.06 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004395/0.301, allocations: 0.7212 MB / 0.5125 GB, free: 9.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002133/0.3012, allocations: 155.8 kB / 0.5126 GB, free: 9.227 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.988e-05/0.3013, allocations: 0.6833 MB / 0.5133 GB, free: 8.531 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.563e-05/0.3014, allocations: 11.34 kB / 0.5133 GB, free: 8.523 MB / 330.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3014, allocations: 0 / 0.5133 GB, free: 8.523 MB / 330.7 MB Notification: Performance of Templates: time 0.001488/0.3028, allocations: 0.7519 MB / 0.5141 GB, free: 8.336 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