Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009103/0.0009104, allocations: 96.66 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001042/0.001043, allocations: 204.2 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002355/0.0002354, allocations: 4 kB / 308.4 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.08921, allocations: 51.53 MB / 359.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001606/0.09085, allocations: 1.161 MB / 361.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001838/0.09106, allocations: 31.91 kB / 361.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.564e-05/0.09113, allocations: 0 / 361.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.969e-05/0.09116, allocations: 7.938 kB / 361.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.974e-05/0.09121, allocations: 0 / 361.1 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002155/0.09144, allocations: 31.97 kB / 361.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.9e-05/0.09153, allocations: 35.86 kB / 361.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.596e-05/0.09164, allocations: 8 kB / 361.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.283e-05/0.0917, allocations: 15.92 kB / 361.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.377e-05/0.09175, allocations: 19.91 kB / 361.2 MB, free: 12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.817e-05/0.09177, allocations: 4 kB / 361.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.051e-05/0.09179, allocations: 0 / 361.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.09e-05/0.09181, allocations: 7.938 kB / 361.2 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.685e-05/0.09187, allocations: 49.62 kB / 361.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.322e-05/0.09194, allocations: 15.95 kB / 361.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.09194, allocations: 0 / 361.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09195, allocations: 0 / 361.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.09196, allocations: 4 kB / 361.3 MB, free: 11.91 MB / 302.1 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.0003922/0.09236, allocations: 343.7 kB / 361.6 MB, free: 11.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.0924, allocations: 8.031 kB / 361.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.553e-05/0.09244, allocations: 8.844 kB / 361.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.09261, allocations: 180.3 kB / 361.8 MB, free: 11.29 MB / 302.1 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.0001108/0.09273, allocations: 42.25 kB / 361.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.707e-05/0.09275, allocations: 4.375 kB / 361.9 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000275/0.09303, allocations: 127.8 kB / 362 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.475e-06/0.09305, allocations: 3.938 kB / 362 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.09307, allocations: 0 / 362 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.09308, allocations: 0 / 362 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.985e-05/0.09316, allocations: 19.92 kB / 362 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001326/0.0933, allocations: 165.7 kB / 362.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001989/0.0935, allocations: 135.8 kB / 362.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.651e-05/0.09357, allocations: 28.84 kB / 362.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-06/0.09358, allocations: 0 / 362.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.941e-05/0.09361, allocations: 30.56 kB / 362.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.042e-06/0.09362, allocations: 4 kB / 362.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002277/0.09386, allocations: 89.39 kB / 362.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.09392, allocations: 59.41 kB / 362.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.804e-05/0.094, allocations: 105.8 kB / 362.6 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.381e-05/0.09402, allocations: 25.7 kB / 362.7 MB, free: 10.33 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.672e-05/0.09407, allocations: 84.14 kB / 362.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.09409, allocations: 7.844 kB / 362.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.618e-05/0.09412, allocations: 21.7 kB / 362.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001111/0.09424, allocations: 314.8 kB / 363.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.799e-05/0.09426, allocations: 12 kB / 363.1 MB, free: 9.879 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.537e-05/0.0943, allocations: 40.27 kB / 363.1 MB, free: 9.824 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.631e-05/0.09436, allocations: 48.23 kB / 363.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.09437, allocations: 3.938 kB / 363.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001065/0.09448, allocations: 69.62 kB / 363.3 MB, free: 9.684 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.09451, allocations: 11.94 kB / 363.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.09451, allocations: 0 / 363.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.09453, allocations: 4 kB / 363.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.268e-05/0.09458, allocations: 11.92 kB / 363.3 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.09459, allocations: 4.156 kB / 363.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.507e-05/0.09462, allocations: 4 kB / 363.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-06/0.09463, allocations: 0 / 363.3 MB, free: 9.648 MB / 302.1 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 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.64e-05/0.09471, allocations: 117.8 kB / 363.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.09482, allocations: 69.53 kB / 363.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.188e-05/0.09485, allocations: 4.406 kB / 363.5 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.09486, allocations: 4 kB / 363.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.09487, allocations: 3.938 kB / 363.5 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.09488, allocations: 0 / 363.5 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.98e-05/0.09497, allocations: 165.7 kB / 363.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.09498, allocations: 0 / 363.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.171e-06/0.09499, allocations: 0 / 363.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.216e-05/0.09501, allocations: 7.922 kB / 363.6 MB, free: 9.215 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.09502, allocations: 8 kB / 363.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.09503, allocations: 0 / 363.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.09503, allocations: 0 / 363.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001197/0.09516, allocations: 85.03 kB / 363.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.577e-05/0.0952, allocations: 85.11 kB / 363.8 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.09523, allocations: 3.938 kB / 363.8 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.875e-05/0.09528, allocations: 11.98 kB / 363.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.145e-06/0.09529, allocations: 3.938 kB / 363.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-06/0.0953, allocations: 0 / 363.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.811e-05/0.09535, allocations: 87.28 kB / 363.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09536, allocations: 0 / 363.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001936/0.09556, allocations: 4 kB / 363.9 MB, free: 8.895 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.582e-05/0.09566, allocations: 111.1 kB / 364 MB, free: 8.777 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001004/0.09577, allocations: 31.94 kB / 364.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.09579, allocations: 4 kB / 364.1 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.09579, allocations: 0 / 364.1 MB, free: 8.742 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006347/0.09643, allocations: 0.7219 MB / 364.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002756/0.09672, allocations: 158.8 kB / 365 MB, free: 7.805 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002286/0.09696, allocations: 0.6809 MB / 365.6 MB, free: 7.098 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.067e-05/0.09699, allocations: 11.44 kB / 365.6 MB, free: 7.086 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.09699, allocations: 0 / 365.6 MB, free: 7.086 MB / 302.1 MB Notification: Performance of Templates: time 0.002044/0.09904, allocations: 0.7577 MB / 366.4 MB, free: 6.336 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches