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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "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: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005764/0.005764, allocations: 144.5 kB / 24.68 MB, free: 9.434 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8304/0.8304, allocations: 173.4 MB / 201.2 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 319.7 MB, free: 5.855 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.596e-05/2.763e-05, allocations: 9.453 kB / 319.7 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001733/0.00176, allocations: 1.426 MB / 321.1 MB, free: 4.406 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001775/0.001938, allocations: 39.84 kB / 321.1 MB, free: 4.367 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.292e-05/0.001991, allocations: 7.938 kB / 321.2 MB, free: 4.359 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.735e-05/0.002018, allocations: 7.922 kB / 321.2 MB, free: 4.352 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.422e-05/0.002072, allocations: 3.938 kB / 321.2 MB, free: 4.348 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002116/0.002284, allocations: 35.09 kB / 321.2 MB, free: 4.316 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.548e-05/0.002369, allocations: 43.84 kB / 321.2 MB, free: 4.273 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.426e-05/0.002464, allocations: 3.984 kB / 321.3 MB, free: 4.27 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.279e-05/0.002527, allocations: 23.98 kB / 321.3 MB, free: 4.246 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.989e-05/0.002556, allocations: 19.91 kB / 321.3 MB, free: 4.227 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.377e-05/0.00258, allocations: 4 kB / 321.3 MB, free: 4.223 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.616e-06/0.002589, allocations: 4 kB / 321.3 MB, free: 4.219 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.79e-05/0.002607, allocations: 7.984 kB / 321.3 MB, free: 4.211 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.329e-05/0.00263, allocations: 16 kB / 321.3 MB, free: 4.195 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.127e-05/0.002721, allocations: 47.8 kB / 321.4 MB, free: 4.148 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.154e-06/0.002723, allocations: 0 / 321.4 MB, free: 4.148 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.002725, allocations: 0 / 321.4 MB, free: 4.148 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.497e-06/0.002728, allocations: 0 / 321.4 MB, free: 4.148 MB / 282.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.0003714/0.0031, allocations: 281.5 kB / 321.6 MB, free: 3.844 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.003133, allocations: 8.031 kB / 321.7 MB, free: 3.836 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.734e-05/0.00317, allocations: 4.938 kB / 321.7 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001669/0.003337, allocations: 129.6 kB / 321.8 MB, free: 3.68 MB / 282.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 8.964e-05/0.003427, allocations: 42.25 kB / 321.8 MB, free: 3.633 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.388e-06/0.003436, allocations: 4.375 kB / 321.8 MB, free: 3.629 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002493/0.003686, allocations: 123.8 kB / 322 MB, free: 3.496 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.058e-05/0.003696, allocations: 192 / 322 MB, free: 3.496 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.003706, allocations: 384 / 322 MB, free: 3.496 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.003712, allocations: 4.125 kB / 322 MB, free: 3.492 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.263e-05/0.003765, allocations: 15.98 kB / 322 MB, free: 3.477 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.811e-05/0.003863, allocations: 109.3 kB / 322.1 MB, free: 3.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.004019, allocations: 58.67 kB / 322.1 MB, free: 3.273 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.75e-05/0.004067, allocations: 32.78 kB / 322.2 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.101e-05/0.004078, allocations: 0 / 322.2 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.02e-05/0.004098, allocations: 34.56 kB / 322.2 MB, free: 3.195 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 1.213e-06/0.004099, allocations: 0 / 322.2 MB, free: 3.195 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001939/0.004293, allocations: 69.64 kB / 322.3 MB, free: 3.121 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.004343, allocations: 59.41 kB / 322.3 MB, free: 3.051 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.651e-05/0.004409, allocations: 109.8 kB / 322.4 MB, free: 2.934 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.326e-05/0.004422, allocations: 25.7 kB / 322.5 MB, free: 2.902 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.6e-05/0.004458, allocations: 88.14 kB / 322.5 MB, free: 2.812 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.343e-05/0.004472, allocations: 3.953 kB / 322.5 MB, free: 2.809 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.626e-05/0.004498, allocations: 29.64 kB / 322.6 MB, free: 2.773 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.772e-05/0.004576, allocations: 314.8 kB / 322.9 MB, free: 2.457 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.605e-05/0.004592, allocations: 8 kB / 322.9 MB, free: 2.449 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.009e-05/0.004612, allocations: 17.7 kB / 322.9 MB, free: 2.426 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.014e-05/0.004642, allocations: 29.66 kB / 322.9 MB, free: 2.391 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.004644, allocations: 0 / 322.9 MB, free: 2.391 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.657e-05/0.0047, allocations: 49.64 kB / 323 MB, free: 2.336 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.004713, allocations: 4 kB / 323 MB, free: 2.332 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-06/0.00472, allocations: 8.047 kB / 323 MB, free: 2.324 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.004732, allocations: 0 / 323 MB, free: 2.324 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.27e-05/0.004774, allocations: 4.438 kB / 323 MB, free: 2.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.00478, allocations: 3.938 kB / 323 MB, free: 2.316 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.289e-05/0.004793, allocations: 8 kB / 323 MB, free: 2.309 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.74e-06/0.004798, allocations: 7.984 kB / 323 MB, free: 2.301 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 5.933e-05/0.004858, allocations: 113.8 kB / 323.1 MB, free: 2.18 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.022e-05/0.004928, allocations: 65.58 kB / 323.2 MB, free: 2.109 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.066e-05/0.004948, allocations: 8.125 kB / 323.2 MB, free: 2.098 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.00495, allocations: 0 / 323.2 MB, free: 2.098 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.004955, allocations: 4 kB / 323.2 MB, free: 2.094 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.004959, allocations: 3.938 kB / 323.2 MB, free: 2.09 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.705e-05/0.005006, allocations: 105.3 kB / 323.3 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.005007, allocations: 0 / 323.3 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.349e-06/0.005011, allocations: 0 / 323.3 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.005013, allocations: 0 / 323.3 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.005023, allocations: 7.984 kB / 323.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.81e-07/0.005023, allocations: 0 / 323.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.005025, allocations: 0 / 323.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.293e-05/0.005108, allocations: 93 kB / 323.4 MB, free: 1.84 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.157e-05/0.005119, allocations: 7.953 kB / 323.4 MB, free: 1.832 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.283e-05/0.005132, allocations: 4 kB / 323.4 MB, free: 1.828 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.963e-05/0.005162, allocations: 8 kB / 323.4 MB, free: 1.82 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-06/0.005166, allocations: 3.984 kB / 323.4 MB, free: 1.816 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.28e-06/0.005171, allocations: 0 / 323.4 MB, free: 1.816 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.811e-05/0.005199, allocations: 83.28 kB / 323.5 MB, free: 1.734 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005199, allocations: 0 / 323.5 MB, free: 1.734 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001271/0.005326, allocations: 11.94 kB / 323.5 MB, free: 1.723 MB / 282.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 8.236e-05/0.005409, allocations: 99.38 kB / 323.6 MB, free: 1.617 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 8.901e-05/0.005498, allocations: 27.98 kB / 323.7 MB, free: 1.59 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.005499, allocations: 12 kB / 323.7 MB, free: 1.578 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.1e-07/0.0055, allocations: 0 / 323.7 MB, free: 1.578 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004642/0.005964, allocations: 0.7215 MB / 324.4 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002361/0.0062, allocations: 150.6 kB / 324.5 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.016e-05/0.00624, allocations: 71.34 kB / 324.6 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.09e-05/0.006261, allocations: 8.5 kB / 324.6 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of SimCode: time 5.71e-07/0.006262, allocations: 0 / 324.6 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of Templates: time 0.001592/0.007854, allocations: 0.7495 MB / 325.4 MB, free: 15.81 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.9731997353956103]