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.005355/0.005355, allocations: 111.2 kB / 21.98 MB, free: 5.191 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.001438/0.001438, allocations: 218.6 kB / 25.3 MB, free: 3.195 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.529/1.529, allocations: 230.6 MB / 259 MB, free: 8.035 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.002009/0.002009, allocations: 68.55 kB / 379.8 MB, free: 2.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3078/0.3098, allocations: 53.37 MB / 433.2 MB, free: 6.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002726/0.3126, allocations: 1.455 MB / 434.6 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002028/0.3128, allocations: 43.84 kB / 434.7 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.854e-05/0.3128, allocations: 0 / 434.7 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.461e-05/0.3129, allocations: 11.94 kB / 434.7 MB, free: 5.465 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.228e-05/0.3129, allocations: 7.922 kB / 434.7 MB, free: 5.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.3132, allocations: 19.98 kB / 434.7 MB, free: 5.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001174/0.3133, allocations: 47.89 kB / 434.7 MB, free: 5.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.3134, allocations: 7.938 kB / 434.8 MB, free: 5.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.537e-05/0.3135, allocations: 11.98 kB / 434.8 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.684e-05/0.3135, allocations: 23.92 kB / 434.8 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.179e-05/0.3136, allocations: 4 kB / 434.8 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.191e-05/0.3136, allocations: 4 kB / 434.8 MB, free: 5.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.624e-05/0.3136, allocations: 11.92 kB / 434.8 MB, free: 5.328 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.736e-05/0.3136, allocations: 15.92 kB / 434.8 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.3138, allocations: 51.61 kB / 434.9 MB, free: 5.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3138, allocations: 0 / 434.9 MB, free: 5.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3138, allocations: 0 / 434.9 MB, free: 5.266 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.3138, allocations: 0 / 434.9 MB, free: 5.266 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.0005857/0.3144, allocations: 267.8 kB / 435.1 MB, free: 4.977 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.3144, allocations: 8.031 kB / 435.1 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.534e-05/0.3145, allocations: 8.891 kB / 435.2 MB, free: 4.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002417/0.3147, allocations: 122.5 kB / 435.3 MB, free: 4.816 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.000113/0.3148, allocations: 42.25 kB / 435.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.276e-05/0.3148, allocations: 4.375 kB / 435.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002977/0.3151, allocations: 123.8 kB / 435.4 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.3152, allocations: 3.938 kB / 435.4 MB, free: 4.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.919e-06/0.3152, allocations: 3.938 kB / 435.4 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.3152, allocations: 4 kB / 435.5 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.685e-05/0.3152, allocations: 12 kB / 435.5 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001679/0.3154, allocations: 148.6 kB / 435.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001758/0.3156, allocations: 58.67 kB / 435.7 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.106e-05/0.3156, allocations: 24.8 kB / 435.7 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.983e-06/0.3156, allocations: 0 / 435.7 MB, free: 4.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.3157, allocations: 30.56 kB / 435.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.3157, allocations: 4 kB / 435.7 MB, free: 4.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002423/0.3159, allocations: 89.59 kB / 435.8 MB, free: 4.191 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.534e-05/0.316, allocations: 55.41 kB / 435.9 MB, free: 4.125 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.3161, allocations: 105.8 kB / 436 MB, free: 4.012 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.3161, allocations: 25.7 kB / 436 MB, free: 3.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.701e-05/0.3161, allocations: 88.14 kB / 436.1 MB, free: 3.891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.452e-05/0.3162, allocations: 3.953 kB / 436.1 MB, free: 3.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.407e-05/0.3162, allocations: 21.66 kB / 436.1 MB, free: 3.859 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.3164, allocations: 322.8 kB / 436.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.033e-05/0.3164, allocations: 8 kB / 436.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.598e-05/0.3164, allocations: 44.27 kB / 436.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.348e-05/0.3165, allocations: 48.23 kB / 436.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3165, allocations: 0 / 436.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001174/0.3166, allocations: 77.52 kB / 436.6 MB, free: 3.324 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.3166, allocations: 7.938 kB / 436.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3166, allocations: 0 / 436.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.3166, allocations: 4 kB / 436.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.381e-05/0.3167, allocations: 8.156 kB / 436.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3167, allocations: 0 / 436.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.742e-05/0.3167, allocations: 7.984 kB / 436.6 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.3167, allocations: 4 kB / 436.6 MB, free: 3.293 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.669e-05/0.3168, allocations: 120.5 kB / 436.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.3169, allocations: 65.62 kB / 436.8 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.083e-05/0.317, allocations: 4.062 kB / 436.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.317, allocations: 0 / 436.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.317, allocations: 3.938 kB / 436.8 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.317, allocations: 4 kB / 436.8 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.3171, allocations: 132.7 kB / 437 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3171, allocations: 4 kB / 437 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.222e-06/0.3171, allocations: 448 / 437 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.3171, allocations: 3.938 kB / 437 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.3171, allocations: 0 / 437 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.3171, allocations: 4 kB / 437 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3171, allocations: 3.984 kB / 437 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001451/0.3172, allocations: 101 kB / 437.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.995e-06/0.3173, allocations: 0 / 437.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.275e-05/0.3173, allocations: 11.94 kB / 437.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.104e-05/0.3173, allocations: 0 / 437.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.833e-06/0.3173, allocations: 0 / 437.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/0.3173, allocations: 7.984 kB / 437.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.599e-05/0.3174, allocations: 83.28 kB / 437.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3174, allocations: 0 / 437.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001951/0.3176, allocations: 8 kB / 437.2 MB, free: 2.668 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.000101/0.3177, allocations: 103.2 kB / 437.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001233/0.3178, allocations: 31.92 kB / 437.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.3178, allocations: 4 kB / 437.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.3178, allocations: 0 / 437.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007322/0.3186, allocations: 0.718 MB / 438 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003149/0.3189, allocations: 155.7 kB / 438.2 MB, free: 1.598 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.3192, allocations: 0.6807 MB / 438.9 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.468e-05/0.3192, allocations: 11.44 kB / 438.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3192, allocations: 0 / 438.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of Templates: time 0.002307/0.3215, allocations: 0.7767 MB / 439.6 MB, free: 108 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/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: 6.911541202105582]