Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001752/0.001752, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002129/0.002129, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.608/1.608, allocations: 230.6 MB / 258.3 MB, free: 8.059 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 60.78 kB / 379 MB, free: 2.684 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3806/0.3827, allocations: 53.38 MB / 432.4 MB, free: 6.965 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002703/0.3854, allocations: 1.454 MB / 433.9 MB, free: 5.508 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0002157/0.3856, allocations: 39.91 kB / 433.9 MB, free: 5.469 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 6.869e-05/0.3857, allocations: 3.938 kB / 433.9 MB, free: 5.465 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 3.069e-05/0.3857, allocations: 7.984 kB / 433.9 MB, free: 5.457 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 5.813e-05/0.3858, allocations: 3.938 kB / 433.9 MB, free: 5.453 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002431/0.386, allocations: 23.97 kB / 433.9 MB, free: 5.43 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001062/0.3861, allocations: 39.86 kB / 434 MB, free: 5.391 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.3863, allocations: 11.98 kB / 434 MB, free: 5.379 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 6.044e-05/0.3863, allocations: 15.94 kB / 434 MB, free: 5.363 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 4.937e-05/0.3864, allocations: 23.91 kB / 434 MB, free: 5.34 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.3864, allocations: 4 kB / 434 MB, free: 5.336 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 1.174e-05/0.3864, allocations: 4 kB / 434 MB, free: 5.332 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 2.826e-05/0.3864, allocations: 15.92 kB / 434 MB, free: 5.316 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 4.017e-05/0.3865, allocations: 11.94 kB / 434.1 MB, free: 5.305 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0001126/0.3866, allocations: 49.91 kB / 434.1 MB, free: 5.258 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3866, allocations: 0 / 434.1 MB, free: 5.258 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.583e-06/0.3866, allocations: 0 / 434.1 MB, free: 5.258 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 5.841e-06/0.3866, allocations: 3.938 kB / 434.1 MB, free: 5.254 MB / 334.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.0004733/0.3871, allocations: 273.7 kB / 434.4 MB, free: 4.961 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.3871, allocations: 8.031 kB / 434.4 MB, free: 4.953 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 4.065e-05/0.3872, allocations: 8.891 kB / 434.4 MB, free: 4.945 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002132/0.3874, allocations: 122.5 kB / 434.5 MB, free: 4.801 MB / 334.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.000114/0.3875, allocations: 42.25 kB / 434.6 MB, free: 4.754 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 1.807e-05/0.3875, allocations: 4.375 kB / 434.6 MB, free: 4.75 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003077/0.3878, allocations: 119.9 kB / 434.7 MB, free: 4.621 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.745e-05/0.3878, allocations: 3.938 kB / 434.7 MB, free: 4.617 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.3878, allocations: 0 / 434.7 MB, free: 4.617 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.3878, allocations: 0 / 434.7 MB, free: 4.617 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 6.574e-05/0.3879, allocations: 19.92 kB / 434.7 MB, free: 4.598 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001503/0.3881, allocations: 148.6 kB / 434.8 MB, free: 4.41 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001897/0.3882, allocations: 58.67 kB / 434.9 MB, free: 4.344 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 5.244e-05/0.3883, allocations: 20.84 kB / 434.9 MB, free: 4.32 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.3883, allocations: 0 / 434.9 MB, free: 4.32 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.3883, allocations: 38.56 kB / 435 MB, free: 4.273 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=5): time 1.312e-06/0.3883, allocations: 4 kB / 435 MB, free: 4.27 MB / 334.1 MB
Notification: Performance of matching and sorting (n=5): time 0.000217/0.3886, allocations: 77.56 kB / 435 MB, free: 4.188 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 6.849e-05/0.3886, allocations: 63.34 kB / 435.1 MB, free: 4.113 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.902e-05/0.3887, allocations: 105.8 kB / 435.2 MB, free: 4 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.3887, allocations: 25.7 kB / 435.2 MB, free: 3.969 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 5.012e-05/0.3888, allocations: 84.12 kB / 435.3 MB, free: 3.883 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.26e-05/0.3888, allocations: 15.94 kB / 435.3 MB, free: 3.867 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/0.3889, allocations: 17.72 kB / 435.3 MB, free: 3.844 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001328/0.389, allocations: 318.8 kB / 435.7 MB, free: 3.523 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 1.789e-05/0.389, allocations: 8 kB / 435.7 MB, free: 3.516 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 4.334e-05/0.389, allocations: 40.23 kB / 435.7 MB, free: 3.461 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 7.361e-05/0.3891, allocations: 52.22 kB / 435.8 MB, free: 3.395 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3891, allocations: 0 / 435.8 MB, free: 3.395 MB / 334.1 MB
Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001065/0.3892, allocations: 73.58 kB / 435.8 MB, free: 3.316 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3892, allocations: 11.94 kB / 435.8 MB, free: 3.305 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.3893, allocations: 0 / 435.8 MB, free: 3.305 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.3893, allocations: 4 kB / 435.8 MB, free: 3.301 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.358e-05/0.3893, allocations: 8.094 kB / 435.9 MB, free: 3.293 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.3893, allocations: 4 kB / 435.9 MB, free: 3.289 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.253e-05/0.3894, allocations: 0 / 435.9 MB, free: 3.289 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.518e-06/0.3894, allocations: 7.938 kB / 435.9 MB, free: 3.281 MB / 334.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 9.424e-05/0.3895, allocations: 113.8 kB / 436 MB, free: 3.16 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.3896, allocations: 69.56 kB / 436 MB, free: 3.086 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.528e-05/0.3896, allocations: 8.047 kB / 436.1 MB, free: 3.074 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.3896, allocations: 4 kB / 436.1 MB, free: 3.07 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3896, allocations: 0 / 436.1 MB, free: 3.07 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3896, allocations: 0 / 436.1 MB, free: 3.07 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001125/0.3897, allocations: 136.7 kB / 436.2 MB, free: 2.895 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3897, allocations: 448 / 436.2 MB, free: 2.895 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.791e-06/0.3897, allocations: 0 / 436.2 MB, free: 2.895 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.3897, allocations: 3.938 kB / 436.2 MB, free: 2.891 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.3897, allocations: 8 kB / 436.2 MB, free: 2.883 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3897, allocations: 3.938 kB / 436.2 MB, free: 2.879 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3897, allocations: 0 / 436.2 MB, free: 2.879 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001338/0.3899, allocations: 85.08 kB / 436.3 MB, free: 2.777 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.119e-05/0.3899, allocations: 11.98 kB / 436.3 MB, free: 2.766 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/0.3899, allocations: 7.938 kB / 436.3 MB, free: 2.758 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.446e-05/0.39, allocations: 7.938 kB / 436.3 MB, free: 2.75 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 1.843e-06/0.39, allocations: 0 / 436.3 MB, free: 2.75 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.182e-06/0.39, allocations: 0 / 436.3 MB, free: 2.75 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 5.126e-05/0.39, allocations: 91.27 kB / 436.4 MB, free: 2.66 MB / 334.1 MB
Notification: Performance of sort global known variables: time 6e-08/0.39, allocations: 0 / 436.4 MB, free: 2.66 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0001884/0.3902, allocations: 4 kB / 436.4 MB, free: 2.656 MB / 334.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 0.0001155/0.3903, allocations: 103.2 kB / 436.5 MB, free: 2.547 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001258/0.3904, allocations: 31.92 kB / 436.5 MB, free: 2.516 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3904, allocations: 0 / 436.5 MB, free: 2.516 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.3904, allocations: 0 / 436.5 MB, free: 2.516 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006795/0.3911, allocations: 0.718 MB / 437.3 MB, free: 1.773 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003117/0.3914, allocations: 137 kB / 437.4 MB, free: 1.617 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.3918, allocations: 0.6807 MB / 438.1 MB, free: 0.9102 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 2.134e-05/0.3918, allocations: 240 / 438.1 MB, free: 0.9102 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.549e-05/0.3918, allocations: 11.44 kB / 438.1 MB, free: 0.8984 MB / 334.1 MB
Notification: Performance of SimCode: time 2.9e-07/0.3918, allocations: 0 / 438.1 MB, free: 0.8984 MB / 334.1 MB
Notification: Performance of Templates: time 0.003371/0.3952, allocations: 0.7119 MB / 438.8 MB, free: 200 kB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 5.058942256495357]