Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 214.3 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.494/1.494, allocations: 230.6 MB / 257.5 MB, free: 7.805 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 52 kB / 378.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2849/0.2867, allocations: 53.36 MB / 431.6 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00302/0.2897, allocations: 1.457 MB / 433 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002061/0.2899, allocations: 43.91 kB / 433.1 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.55e-05/0.29, allocations: 7.938 kB / 433.1 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.647e-05/0.29, allocations: 3.938 kB / 433.1 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.298e-05/0.2901, allocations: 3.938 kB / 433.1 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.2903, allocations: 27.95 kB / 433.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.959e-05/0.2904, allocations: 43.8 kB / 433.2 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001033/0.2905, allocations: 15.97 kB / 433.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.538e-05/0.2906, allocations: 12 kB / 433.2 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.088e-05/0.2906, allocations: 19.86 kB / 433.2 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/0.2906, allocations: 4 kB / 433.2 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.329e-05/0.2907, allocations: 4 kB / 433.2 MB, free: 5.066 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.145e-05/0.2907, allocations: 7.984 kB / 433.2 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.2907, allocations: 19.92 kB / 433.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000104/0.2908, allocations: 39.69 kB / 433.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2908, allocations: 0 / 433.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.2908, allocations: 3.938 kB / 433.3 MB, free: 5 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.2908, allocations: 0 / 433.3 MB, free: 5 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.000548/0.2914, allocations: 272.7 kB / 433.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.2914, allocations: 8.031 kB / 433.6 MB, free: 4.699 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.797e-05/0.2915, allocations: 8.891 kB / 433.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.2917, allocations: 122.5 kB / 433.7 MB, free: 4.547 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.00013/0.2918, allocations: 42.2 kB / 433.7 MB, free: 4.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.2919, allocations: 8.375 kB / 433.7 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003375/0.2922, allocations: 119.9 kB / 433.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.2922, allocations: 3.938 kB / 433.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-06/0.2922, allocations: 0 / 433.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.498e-06/0.2922, allocations: 0 / 433.8 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.2e-05/0.2923, allocations: 23.92 kB / 433.9 MB, free: 4.336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002094/0.2925, allocations: 113.2 kB / 434 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001934/0.2927, allocations: 62.67 kB / 434 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.622e-05/0.2928, allocations: 20.86 kB / 434.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.2928, allocations: 0 / 434.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.2928, allocations: 38.55 kB / 434.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.2928, allocations: 0 / 434.1 MB, free: 4.055 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002119/0.293, allocations: 77.5 kB / 434.2 MB, free: 3.973 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.279e-05/0.2931, allocations: 59.41 kB / 434.2 MB, free: 3.902 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.2932, allocations: 105.8 kB / 434.3 MB, free: 3.789 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.737e-05/0.2932, allocations: 25.7 kB / 434.4 MB, free: 3.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.141e-05/0.2933, allocations: 88.14 kB / 434.5 MB, free: 3.668 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.317e-05/0.2933, allocations: 3.953 kB / 434.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.506e-05/0.2933, allocations: 25.7 kB / 434.5 MB, free: 3.633 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002333/0.2935, allocations: 322.8 kB / 434.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.762e-05/0.2936, allocations: 4 kB / 434.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.41e-05/0.2936, allocations: 40.72 kB / 434.8 MB, free: 3.25 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.43e-05/0.2937, allocations: 52.17 kB / 434.9 MB, free: 3.184 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2937, allocations: 0 / 434.9 MB, free: 3.184 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001079/0.2938, allocations: 73.58 kB / 435 MB, free: 3.105 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.377e-05/0.2938, allocations: 8 kB / 435 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.2938, allocations: 4 kB / 435 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.2938, allocations: 3.938 kB / 435 MB, free: 3.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.055e-05/0.2939, allocations: 15.92 kB / 435 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.2939, allocations: 0 / 435 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.357e-05/0.2939, allocations: 0 / 435 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.2939, allocations: 4 kB / 435 MB, free: 3.07 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.659e-05/0.294, allocations: 118 kB / 435.1 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.2941, allocations: 65.62 kB / 435.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.725e-05/0.2942, allocations: 12 kB / 435.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2942, allocations: 4 kB / 435.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2942, allocations: 0 / 435.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.2942, allocations: 0 / 435.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.656e-05/0.2943, allocations: 101.3 kB / 435.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.2943, allocations: 0 / 435.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.911e-06/0.2943, allocations: 0 / 435.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.222e-06/0.2943, allocations: 0 / 435.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.2943, allocations: 11.94 kB / 435.3 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.2944, allocations: 7.938 kB / 435.3 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2944, allocations: 0 / 435.3 MB, free: 2.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001434/0.2945, allocations: 89.06 kB / 435.4 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.077e-05/0.2945, allocations: 4 kB / 435.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.69e-05/0.2945, allocations: 0 / 435.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.777e-05/0.2946, allocations: 11.94 kB / 435.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.154e-06/0.2946, allocations: 0 / 435.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.2946, allocations: 7.984 kB / 435.4 MB, free: 2.578 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.439e-05/0.2946, allocations: 91.22 kB / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2946, allocations: 0 / 435.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002034/0.2948, allocations: 8 kB / 435.5 MB, free: 2.48 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.0001107/0.295, allocations: 99.25 kB / 435.6 MB, free: 2.375 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001266/0.2951, allocations: 31.92 kB / 435.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2951, allocations: 4 kB / 435.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.2951, allocations: 3.938 kB / 435.7 MB, free: 2.336 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007412/0.2958, allocations: 0.7244 MB / 436.4 MB, free: 1.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003023/0.2961, allocations: 121.9 kB / 436.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.509e-05/0.2962, allocations: 71.72 kB / 436.6 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.358e-05/0.2962, allocations: 7.969 kB / 436.6 MB, free: 1.348 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.804e-05/0.2963, allocations: 11.44 kB / 436.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2963, allocations: 0 / 436.6 MB, free: 1.336 MB / 334.1 MB Notification: Performance of Templates: time 0.003298/0.2996, allocations: 0.7729 MB / 437.4 MB, free: 0.582 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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: 4.480908039957285]