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.001872/0.001872, allocations: 179.4 kB / 16.77 MB, free: 4.898 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.629/1.629, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008612/0.000861, allocations: 97.05 kB / 271.3 MB, free: 8.238 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.06718/0.06718, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003869/0.0003869, allocations: 16 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07021/0.07061, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001171/0.07182, allocations: 1.152 MB / 444.1 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001583/0.07201, allocations: 27.91 kB / 444.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.237e-05/0.07207, allocations: 4 kB / 444.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.562e-05/0.0721, allocations: 3.938 kB / 444.1 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.412e-05/0.07215, allocations: 3.938 kB / 444.1 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002037/0.07236, allocations: 27.97 kB / 444.2 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.733e-05/0.07243, allocations: 39.86 kB / 444.2 MB, free: 14.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.078e-05/0.07252, allocations: 19.97 kB / 444.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.003e-05/0.07256, allocations: 4 kB / 444.2 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.671e-05/0.07261, allocations: 19.92 kB / 444.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.07263, allocations: 0 / 444.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.778e-06/0.07265, allocations: 0 / 444.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.594e-05/0.07267, allocations: 7.938 kB / 444.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.448e-05/0.07271, allocations: 45.61 kB / 444.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.443e-05/0.07277, allocations: 23.95 kB / 444.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.07279, allocations: 0 / 444.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.07279, allocations: 0 / 444.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.07281, allocations: 4 kB / 444.3 MB, free: 14.72 MB / 298.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.000313/0.07312, allocations: 343.7 kB / 444.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.07316, allocations: 12.03 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.261e-05/0.0732, allocations: 4.844 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.07332, allocations: 184.3 kB / 444.9 MB, free: 14.1 MB / 298.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001174/0.07345, allocations: 34.25 kB / 444.9 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.499e-05/0.07347, allocations: 4.375 kB / 444.9 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000228/0.0737, allocations: 127.8 kB / 445 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.07372, allocations: 3.938 kB / 445 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.427e-06/0.07373, allocations: 4 kB / 445 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.07374, allocations: 0 / 445 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.897e-05/0.0738, allocations: 19.92 kB / 445.1 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.389e-05/0.0739, allocations: 161.7 kB / 445.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001415/0.07404, allocations: 143.8 kB / 445.4 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.278e-05/0.0741, allocations: 20.86 kB / 445.4 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.836e-06/0.07411, allocations: 0 / 445.4 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.372e-05/0.07413, allocations: 34.56 kB / 445.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.532e-06/0.07414, allocations: 0 / 445.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001646/0.07431, allocations: 81.55 kB / 445.5 MB, free: 13.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.07435, allocations: 59.41 kB / 445.6 MB, free: 13.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.964e-05/0.07441, allocations: 105.9 kB / 445.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-06/0.07442, allocations: 29.69 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.676e-05/0.07444, allocations: 84.14 kB / 445.8 MB, free: 13.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.213e-05/0.07446, allocations: 7.844 kB / 445.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.846e-06/0.07447, allocations: 0 / 445.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.619e-05/0.07451, allocations: 318.8 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.439e-05/0.07453, allocations: 7.984 kB / 446.1 MB, free: 12.72 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.455e-05/0.07456, allocations: 44.23 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.937e-05/0.07461, allocations: 48.17 kB / 446.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.07461, allocations: 0 / 446.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.021e-05/0.0747, allocations: 77.61 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.07472, allocations: 8.875 kB / 446.3 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.07473, allocations: 0 / 446.3 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.07474, allocations: 4.047 kB / 446.3 MB, free: 12.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.019e-05/0.07479, allocations: 11.92 kB / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.0748, allocations: 160 / 446.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.371e-05/0.07483, allocations: 7.906 kB / 446.3 MB, free: 12.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-06/0.07484, allocations: 0 / 446.3 MB, free: 12.49 MB / 298.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 5.503e-05/0.0749, allocations: 128.6 kB / 446.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.626e-05/0.07498, allocations: 66 kB / 446.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.713e-05/0.075, allocations: 3.969 kB / 446.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-06/0.07501, allocations: 4 kB / 446.5 MB, free: 12.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.07502, allocations: 7.984 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.07503, allocations: 0 / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.981e-05/0.07508, allocations: 161.7 kB / 446.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.07509, allocations: 0 / 446.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.031e-06/0.0751, allocations: 0 / 446.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.0751, allocations: 3.938 kB / 446.7 MB, free: 12.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.07512, allocations: 8 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.07512, allocations: 3.984 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.07513, allocations: 0 / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.261e-05/0.07523, allocations: 85.03 kB / 446.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.695e-05/0.07525, allocations: 85.09 kB / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.07527, allocations: 7.938 kB / 446.8 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.064e-05/0.07532, allocations: 11.88 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.324e-06/0.07533, allocations: 0 / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-06/0.07534, allocations: 4 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.223e-05/0.07537, allocations: 91.27 kB / 446.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.07537, allocations: 0 / 446.9 MB, free: 11.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000185/0.07556, allocations: 4 kB / 447 MB, free: 11.73 MB / 298.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.29e-05/0.07563, allocations: 103.2 kB / 447.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.021e-05/0.07572, allocations: 31.92 kB / 447.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.07573, allocations: 4 kB / 447.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.07574, allocations: 320 / 447.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004359/0.07618, allocations: 0.7257 MB / 447.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002138/0.07641, allocations: 162.3 kB / 448 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.065e-05/0.0765, allocations: 0.6848 MB / 448.7 MB, free: 9.926 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.692e-05/0.07652, allocations: 15.5 kB / 448.7 MB, free: 9.91 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.07653, allocations: 0 / 448.7 MB, free: 9.91 MB / 298.7 MB Notification: Performance of Templates: time 0.001573/0.07811, allocations: 0.7545 MB / 449.4 MB, free: 9.16 MB / 298.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/jenkins/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