Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009695/0.0009696, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.285/1.285, allocations: 226.5 MB / 244.7 MB, free: 6.477 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008681/0.0008683, allocations: 96.2 kB / 296.8 MB, free: 6.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002517, allocations: 4 kB / 356.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2013, allocations: 51.3 MB / 408 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00141/0.2028, allocations: 1.152 MB / 409.2 MB, free: 26.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001813/0.203, allocations: 39.84 kB / 409.2 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.802e-05/0.203, allocations: 0 / 409.2 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.428e-05/0.2031, allocations: 0 / 409.2 MB, free: 26.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.983e-05/0.2031, allocations: 3.938 kB / 409.2 MB, free: 26.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002259/0.2034, allocations: 27.97 kB / 409.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.307e-05/0.2035, allocations: 32.61 kB / 409.3 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.915e-05/0.2035, allocations: 16.72 kB / 409.3 MB, free: 26.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.261e-05/0.2036, allocations: 7.938 kB / 409.3 MB, free: 26.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.057e-05/0.2036, allocations: 25.09 kB / 409.3 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.461e-05/0.2037, allocations: 0 / 409.3 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.003e-05/0.2037, allocations: 0 / 409.3 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.709e-05/0.2037, allocations: 13.8 kB / 409.4 MB, free: 26.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.49e-05/0.2037, allocations: 41.58 kB / 409.4 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.594e-05/0.2038, allocations: 19.95 kB / 409.4 MB, free: 26.3 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2038, allocations: 0 / 409.4 MB, free: 26.3 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.995e-06/0.2038, allocations: 3.984 kB / 409.4 MB, free: 26.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.457e-06/0.2038, allocations: 0.9375 kB / 409.4 MB, free: 26.3 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.0003166/0.2042, allocations: 344.2 kB / 409.8 MB, free: 25.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.2042, allocations: 15.97 kB / 409.8 MB, free: 25.89 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.144e-05/0.2042, allocations: 0.9375 kB / 409.8 MB, free: 25.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.2044, allocations: 185.9 kB / 410 MB, free: 25.68 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 9.704e-05/0.2045, allocations: 32.42 kB / 410 MB, free: 25.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.237e-05/0.2045, allocations: 8.375 kB / 410 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.2047, allocations: 128.5 kB / 410.1 MB, free: 25.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.2047, allocations: 3.938 kB / 410.1 MB, free: 25.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.055e-06/0.2048, allocations: 0.9062 kB / 410.1 MB, free: 25.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.296e-06/0.2048, allocations: 0 / 410.1 MB, free: 25.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.234e-05/0.2048, allocations: 20.92 kB / 410.2 MB, free: 25.47 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.44e-05/0.2049, allocations: 165.6 kB / 410.3 MB, free: 25.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.2051, allocations: 138.7 kB / 410.4 MB, free: 25.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.299e-05/0.2051, allocations: 28.84 kB / 410.5 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.881e-06/0.2051, allocations: 0 / 410.5 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.118e-05/0.2051, allocations: 32.88 kB / 410.5 MB, free: 25.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 9.21e-07/0.2052, allocations: 4 kB / 410.5 MB, free: 25.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001809/0.2053, allocations: 77.47 kB / 410.6 MB, free: 24.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/0.2054, allocations: 59.41 kB / 410.6 MB, free: 24.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.511e-05/0.2054, allocations: 106 kB / 410.8 MB, free: 24.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.616e-06/0.2055, allocations: 29.7 kB / 410.8 MB, free: 24.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.746e-05/0.2055, allocations: 84.14 kB / 410.9 MB, free: 24.64 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.215e-05/0.2055, allocations: 7.891 kB / 410.9 MB, free: 24.63 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.695e-06/0.2055, allocations: 7.938 kB / 410.9 MB, free: 24.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.959e-05/0.2056, allocations: 314.8 kB / 411.2 MB, free: 24.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.45e-05/0.2056, allocations: 8 kB / 411.2 MB, free: 24.3 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.501e-05/0.2056, allocations: 44.53 kB / 411.2 MB, free: 24.24 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.725e-05/0.2057, allocations: 44.23 kB / 411.3 MB, free: 24.18 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.2057, allocations: 0 / 411.3 MB, free: 24.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.973e-05/0.2057, allocations: 77.56 kB / 411.4 MB, free: 24.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.2058, allocations: 7.938 kB / 411.4 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.2058, allocations: 0 / 411.4 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.2058, allocations: 8 kB / 411.4 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.911e-05/0.2058, allocations: 7.984 kB / 411.4 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.2058, allocations: 3.938 kB / 411.4 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.3e-05/0.2059, allocations: 8 kB / 411.4 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.657e-06/0.2059, allocations: 0 / 411.4 MB, free: 24.07 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.355e-05/0.2059, allocations: 124 kB / 411.5 MB, free: 23.94 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.776e-05/0.206, allocations: 61.53 kB / 411.6 MB, free: 23.87 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.296e-05/0.2061, allocations: 11.97 kB / 411.6 MB, free: 23.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-06/0.2061, allocations: 0 / 411.6 MB, free: 23.85 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2061, allocations: 96 / 411.6 MB, free: 23.85 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2061, allocations: 7.922 kB / 411.6 MB, free: 23.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.601e-05/0.2062, allocations: 157.7 kB / 411.7 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.2062, allocations: 0 / 411.7 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.143e-06/0.2062, allocations: 3.938 kB / 411.7 MB, free: 23.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.2062, allocations: 11.92 kB / 411.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.2062, allocations: 4 kB / 411.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.2062, allocations: 4 kB / 411.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2062, allocations: 0 / 411.8 MB, free: 23.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.721e-05/0.2063, allocations: 81.12 kB / 411.8 MB, free: 23.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.249e-05/0.2063, allocations: 85.02 kB / 411.9 MB, free: 23.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.72e-05/0.2064, allocations: 3.938 kB / 411.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.254e-05/0.2064, allocations: 7.984 kB / 411.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.623e-06/0.2064, allocations: 0 / 411.9 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.346e-06/0.2064, allocations: 7.938 kB / 411.9 MB, free: 23.4 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.233e-05/0.2065, allocations: 91.28 kB / 412 MB, free: 23.31 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2065, allocations: 0 / 412 MB, free: 23.31 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001742/0.2067, allocations: 8 kB / 412 MB, free: 23.3 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 7.009e-05/0.2067, allocations: 103.2 kB / 412.1 MB, free: 23.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.39e-05/0.2068, allocations: 28 kB / 412.2 MB, free: 23.16 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2068, allocations: 0 / 412.2 MB, free: 23.16 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.32e-07/0.2068, allocations: 4.312 kB / 412.2 MB, free: 23.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004469/0.2073, allocations: 0.7258 MB / 412.9 MB, free: 22.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002029/0.2075, allocations: 154.6 kB / 413.1 MB, free: 22.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.789e-05/0.2076, allocations: 0.6825 MB / 413.7 MB, free: 21.52 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.803e-05/0.2076, allocations: 15.5 kB / 413.8 MB, free: 21.5 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.2076, allocations: 0 / 413.8 MB, free: 21.5 MB / 298.7 MB Notification: Performance of Templates: time 0.00156/0.2092, allocations: 0.7545 MB / 414.5 MB, free: 20.75 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches