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.001297/0.001297, allocations: 104.5 kB / 17.85 MB, free: 5.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.9 MB, free: 8.93 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 63.64 kB / 306.9 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09352, allocations: 50.54 MB / 357.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002731/0.09629, allocations: 1.5 MB / 358.9 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001797/0.0965, allocations: 35.91 kB / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.9e-05/0.09658, allocations: 0 / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.28e-05/0.09665, allocations: 3.938 kB / 359 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.516e-05/0.09671, allocations: 8 kB / 359 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002256/0.09694, allocations: 27.97 kB / 359 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.466e-05/0.09703, allocations: 35.92 kB / 359 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.018e-05/0.09713, allocations: 4 kB / 359.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.504e-05/0.09719, allocations: 23.84 kB / 359.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.742e-05/0.09724, allocations: 19.92 kB / 359.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.776e-05/0.09726, allocations: 0 / 359.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.362e-05/0.09728, allocations: 4 kB / 359.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.114e-05/0.0973, allocations: 11.92 kB / 359.1 MB, free: 12.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.581e-05/0.09735, allocations: 19.94 kB / 359.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 6.445e-05/0.09742, allocations: 23.94 kB / 359.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.09743, allocations: 0 / 359.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09743, allocations: 4 kB / 359.2 MB, free: 12.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.09744, allocations: 0 / 359.2 MB, free: 12.53 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.0004302/0.09788, allocations: 347.7 kB / 359.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.09792, allocations: 8.031 kB / 359.5 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.148e-05/0.09797, allocations: 8.844 kB / 359.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001706/0.09814, allocations: 180.2 kB / 359.7 MB, free: 11.91 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.0001166/0.09827, allocations: 42.25 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.09828, allocations: 384 / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002812/0.09857, allocations: 123.8 kB / 359.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.09859, allocations: 3.938 kB / 359.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.09862, allocations: 8 kB / 359.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.09863, allocations: 0 / 359.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.904e-05/0.09871, allocations: 15.98 kB / 359.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001555/0.09887, allocations: 161.7 kB / 360 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.09909, allocations: 143.7 kB / 360.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.64e-05/0.09916, allocations: 24.84 kB / 360.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.267e-06/0.09918, allocations: 3.984 kB / 360.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.0992, allocations: 34.56 kB / 360.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.131e-05/0.09922, allocations: 4 kB / 360.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001991/0.09942, allocations: 77.56 kB / 360.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.737e-05/0.09948, allocations: 59.41 kB / 360.4 MB, free: 11.1 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.253e-05/0.09957, allocations: 105.8 kB / 360.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.253e-05/0.09959, allocations: 25.7 kB / 360.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.647e-05/0.09963, allocations: 92.06 kB / 360.6 MB, free: 10.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.471e-05/0.09965, allocations: 7.844 kB / 360.6 MB, free: 10.85 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.518e-05/0.09969, allocations: 25.7 kB / 360.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.0998, allocations: 318.8 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.933e-05/0.09983, allocations: 7.984 kB / 360.9 MB, free: 10.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.551e-05/0.09987, allocations: 36.73 kB / 361 MB, free: 10.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.777e-05/0.09993, allocations: 52.23 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.09994, allocations: 0 / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001153/0.1001, allocations: 77.47 kB / 361.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.1001, allocations: 7.938 kB / 361.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1001, allocations: 7.984 kB / 361.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1001, allocations: 0 / 361.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.43e-05/0.1002, allocations: 4.156 kB / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.779e-06/0.1002, allocations: 11.94 kB / 361.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.531e-05/0.1002, allocations: 0 / 361.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.804e-06/0.1002, allocations: 4 kB / 361.1 MB, free: 10.26 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 8.109e-05/0.1003, allocations: 119.8 kB / 361.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001129/0.1004, allocations: 65.62 kB / 361.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.282e-05/0.1005, allocations: 3.969 kB / 361.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.1005, allocations: 0 / 361.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1005, allocations: 0 / 361.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.1005, allocations: 0 / 361.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.1006, allocations: 173.6 kB / 361.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.1006, allocations: 0 / 361.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.591e-05/0.1006, allocations: 3.938 kB / 361.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.1006, allocations: 3.938 kB / 361.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.106e-06/0.1006, allocations: 0 / 361.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.1006, allocations: 0 / 361.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1007, allocations: 0 / 361.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001346/0.1008, allocations: 89.03 kB / 361.6 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.464e-05/0.1008, allocations: 81.11 kB / 361.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.1009, allocations: 15.92 kB / 361.7 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.652e-05/0.1009, allocations: 0 / 361.7 MB, free: 9.609 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.851e-06/0.1009, allocations: 3.938 kB / 361.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.704e-05/0.101, allocations: 8 kB / 361.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.085e-05/0.101, allocations: 87.27 kB / 361.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.101, allocations: 0 / 361.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002026/0.1012, allocations: 8 kB / 361.8 MB, free: 9.504 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.473e-05/0.1013, allocations: 107.2 kB / 361.9 MB, free: 9.391 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001427/0.1015, allocations: 31.92 kB / 361.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.1015, allocations: 0 / 361.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.41e-07/0.1015, allocations: 0 / 361.9 MB, free: 9.359 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006749/0.1022, allocations: 0.7215 MB / 362.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002868/0.1025, allocations: 173.2 kB / 362.8 MB, free: 8.414 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002125/0.1027, allocations: 0.6848 MB / 363.5 MB, free: 7.703 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.128e-05/0.1027, allocations: 11.44 kB / 363.5 MB, free: 7.691 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1027, allocations: 0 / 363.5 MB, free: 7.691 MB / 302.1 MB Notification: Performance of Templates: time 0.001883/0.1046, allocations: 0.7575 MB / 364.3 MB, free: 6.941 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