Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001448/0.001447, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 110.1 kB / 291.2 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 39.94 kB / 350 MB, free: 32 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3064/0.3076, allocations: 49.44 MB / 399.5 MB, free: 33.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.0026/0.3103, allocations: 1.481 MB / 401 MB, free: 31.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002023/0.3105, allocations: 39.84 kB / 401 MB, free: 31.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.144e-05/0.3106, allocations: 1 kB / 401 MB, free: 31.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.837e-05/0.3107, allocations: 0 / 401 MB, free: 31.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.183e-05/0.3107, allocations: 7.922 kB / 401 MB, free: 31.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002573/0.311, allocations: 30.11 kB / 401 MB, free: 31.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.99e-05/0.3111, allocations: 43.91 kB / 401.1 MB, free: 31.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001446/0.3112, allocations: 8 kB / 401.1 MB, free: 31.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.122e-05/0.3113, allocations: 15.91 kB / 401.1 MB, free: 31.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.772e-05/0.3114, allocations: 19.92 kB / 401.1 MB, free: 31.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.3114, allocations: 0 / 401.1 MB, free: 31.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.408e-05/0.3114, allocations: 4 kB / 401.1 MB, free: 31.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.425e-05/0.3114, allocations: 7.938 kB / 401.1 MB, free: 31.66 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.076e-05/0.3115, allocations: 15.92 kB / 401.1 MB, free: 31.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001023/0.3116, allocations: 39.88 kB / 401.2 MB, free: 31.61 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3116, allocations: 7.938 kB / 401.2 MB, free: 31.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3116, allocations: 0 / 401.2 MB, free: 31.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.3116, allocations: 0 / 401.2 MB, free: 31.6 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.0004788/0.3121, allocations: 353 kB / 401.5 MB, free: 31.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.3122, allocations: 8.031 kB / 401.5 MB, free: 31.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.3e-05/0.3122, allocations: 8.844 kB / 401.6 MB, free: 31.19 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.3124, allocations: 180.3 kB / 401.7 MB, free: 30.98 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.0001616/0.3126, allocations: 34.25 kB / 401.8 MB, free: 30.94 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.3126, allocations: 8.375 kB / 401.8 MB, free: 30.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003547/0.313, allocations: 127.8 kB / 401.9 MB, free: 30.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.313, allocations: 3.938 kB / 401.9 MB, free: 30.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.313, allocations: 7.984 kB / 401.9 MB, free: 30.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.313, allocations: 0 / 401.9 MB, free: 30.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.411e-05/0.3131, allocations: 15.98 kB / 401.9 MB, free: 30.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001311/0.3132, allocations: 165.6 kB / 402.1 MB, free: 30.55 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001907/0.3134, allocations: 139.8 kB / 402.2 MB, free: 30.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.188e-05/0.3135, allocations: 28.78 kB / 402.2 MB, free: 30.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.3135, allocations: 0 / 402.2 MB, free: 30.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.715e-05/0.3135, allocations: 34.56 kB / 402.3 MB, free: 30.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.3135, allocations: 0 / 402.3 MB, free: 30.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002252/0.3138, allocations: 77.53 kB / 402.4 MB, free: 30.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.045e-05/0.3138, allocations: 63.41 kB / 402.4 MB, free: 30.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.15e-05/0.3139, allocations: 114 kB / 402.5 MB, free: 30.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.969e-06/0.3139, allocations: 25.7 kB / 402.6 MB, free: 30.01 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.775e-05/0.314, allocations: 80.14 kB / 402.6 MB, free: 29.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.209e-05/0.314, allocations: 11.91 kB / 402.6 MB, free: 29.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.127e-05/0.314, allocations: 21.7 kB / 402.7 MB, free: 29.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.95e-05/0.3141, allocations: 318.8 kB / 403 MB, free: 29.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.922e-05/0.3141, allocations: 12 kB / 403 MB, free: 29.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.285e-05/0.3142, allocations: 40.28 kB / 403 MB, free: 29.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.177e-05/0.3142, allocations: 52.23 kB / 403.1 MB, free: 29.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3142, allocations: 0 / 403.1 MB, free: 29.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.565e-05/0.3143, allocations: 69.56 kB / 403.1 MB, free: 29.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3144, allocations: 11.94 kB / 403.2 MB, free: 29.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.385e-06/0.3144, allocations: 0 / 403.2 MB, free: 29.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.025e-05/0.3144, allocations: 3.984 kB / 403.2 MB, free: 29.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.381e-05/0.3145, allocations: 8 kB / 403.2 MB, free: 29.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.698e-06/0.3145, allocations: 0 / 403.2 MB, free: 29.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.419e-05/0.3145, allocations: 4.156 kB / 403.2 MB, free: 29.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.3145, allocations: 4 kB / 403.2 MB, free: 29.33 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 ($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.851e-05/0.3146, allocations: 118.6 kB / 403.3 MB, free: 29.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.011e-05/0.3147, allocations: 77.41 kB / 403.4 MB, free: 29.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.358e-05/0.3147, allocations: 3.969 kB / 403.4 MB, free: 29.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3148, allocations: 4 kB / 403.4 MB, free: 29.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3148, allocations: 0 / 403.4 MB, free: 29.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.3148, allocations: 0 / 403.4 MB, free: 29.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.713e-05/0.3149, allocations: 161.7 kB / 403.5 MB, free: 28.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3149, allocations: 7.984 kB / 403.5 MB, free: 28.89 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.74e-06/0.3149, allocations: 0 / 403.5 MB, free: 28.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.3149, allocations: 3.938 kB / 403.5 MB, free: 28.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.3149, allocations: 4 kB / 403.6 MB, free: 28.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3149, allocations: 0 / 403.6 MB, free: 28.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3149, allocations: 0 / 403.6 MB, free: 28.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.3152, allocations: 0.6592 MB / 404.2 MB, free: 28.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.915e-05/0.3152, allocations: 85.09 kB / 404.3 MB, free: 28.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.3153, allocations: 8 kB / 404.3 MB, free: 28.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.297e-05/0.3153, allocations: 0 / 404.3 MB, free: 28.06 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.055e-06/0.3153, allocations: 4 kB / 404.3 MB, free: 28.05 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.3153, allocations: 0 / 404.3 MB, free: 28.05 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.496e-05/0.3154, allocations: 87.27 kB / 404.4 MB, free: 27.97 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3154, allocations: 0 / 404.4 MB, free: 27.97 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003092/0.3157, allocations: 8 kB / 404.4 MB, free: 27.96 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001002/0.3158, allocations: 111.3 kB / 404.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.907e-05/0.3159, allocations: 35.92 kB / 404.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3159, allocations: 4 kB / 404.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.3159, allocations: 0 / 404.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005218/0.3164, allocations: 0.7141 MB / 405.3 MB, free: 27.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004002/0.3168, allocations: 246.5 kB / 405.5 MB, free: 26.78 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.317, allocations: 0.6848 MB / 406.2 MB, free: 26.07 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.814e-05/0.317, allocations: 4 kB / 406.2 MB, free: 26.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.597e-05/0.3171, allocations: 7.438 kB / 406.2 MB, free: 26.06 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.3171, allocations: 4 kB / 406.2 MB, free: 26.05 MB / 298.7 MB Notification: Performance of Templates: time 0.002732/0.3198, allocations: 0.6617 MB / 406.9 MB, free: 25.4 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches