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.001498/0.001498, allocations: 123.4 kB / 18.46 MB, free: 4.473 MB / 14.72 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.001551/0.001551, allocations: 192.3 kB / 21.4 MB, free: 1.535 MB / 14.72 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 1.378/1.378, allocations: 225.6 MB / 249.8 MB, free: 3.75 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001468/0.001468, allocations: 51.91 kB / 366.8 MB, free: 364 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1068, allocations: 52.14 MB / 418.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003132/0.1099, allocations: 1.423 MB / 420.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002104/0.1101, allocations: 43.84 kB / 420.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.806e-05/0.1102, allocations: 4 kB / 420.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.497e-05/0.1102, allocations: 3.938 kB / 420.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.205e-05/0.1103, allocations: 3.938 kB / 420.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.1105, allocations: 27.95 kB / 420.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001138/0.1107, allocations: 39.86 kB / 420.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001171/0.1108, allocations: 15.97 kB / 420.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.492e-05/0.1108, allocations: 11.94 kB / 420.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.274e-05/0.1109, allocations: 23.92 kB / 420.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.1109, allocations: 4 kB / 420.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.281e-05/0.1109, allocations: 4 kB / 420.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.138e-05/0.1109, allocations: 7.984 kB / 420.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.624e-05/0.111, allocations: 23.86 kB / 420.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.1111, allocations: 47.75 kB / 420.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.1111, allocations: 0 / 420.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1111, allocations: 0 / 420.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.1111, allocations: 0 / 420.6 MB, free: 10.43 MB / 350.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.0005134/0.1116, allocations: 351.4 kB / 421 MB, free: 10.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.1116, allocations: 11.89 kB / 421 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.807e-05/0.1117, allocations: 4.938 kB / 421 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002364/0.1119, allocations: 192.2 kB / 421.2 MB, free: 9.793 MB / 350.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 9.795e-05/0.112, allocations: 40.75 kB / 421.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.112, allocations: 4.375 kB / 421.2 MB, free: 9.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002929/0.1123, allocations: 131.8 kB / 421.3 MB, free: 9.605 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1123, allocations: 3.938 kB / 421.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/0.1123, allocations: 0 / 421.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.1123, allocations: 0 / 421.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.576e-05/0.1124, allocations: 20 kB / 421.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001751/0.1126, allocations: 165.6 kB / 421.5 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.1128, allocations: 139.7 kB / 421.7 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.17e-05/0.1129, allocations: 20.86 kB / 421.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.068e-05/0.1129, allocations: 0 / 421.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.836e-05/0.1129, allocations: 38.55 kB / 421.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 9.62e-07/0.1129, allocations: 0 / 421.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.000218/0.1131, allocations: 77.58 kB / 421.8 MB, free: 9.055 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.794e-05/0.1132, allocations: 63.34 kB / 421.9 MB, free: 8.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.152e-05/0.1133, allocations: 105.8 kB / 422 MB, free: 8.867 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.1133, allocations: 25.7 kB / 422 MB, free: 8.836 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.218e-05/0.1133, allocations: 88.14 kB / 422.1 MB, free: 8.746 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.586e-05/0.1134, allocations: 7.953 kB / 422.1 MB, free: 8.738 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.622e-05/0.1134, allocations: 21.7 kB / 422.1 MB, free: 8.711 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.1135, allocations: 314.8 kB / 422.4 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.701e-05/0.1135, allocations: 4 kB / 422.4 MB, free: 8.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.408e-05/0.1136, allocations: 40.28 kB / 422.5 MB, free: 8.336 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.108e-05/0.1136, allocations: 52.23 kB / 422.5 MB, free: 8.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1136, allocations: 0 / 422.5 MB, free: 8.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001053/0.1137, allocations: 73.62 kB / 422.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.1138, allocations: 11.94 kB / 422.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.1138, allocations: 0 / 422.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.1138, allocations: 0 / 422.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.313e-05/0.1138, allocations: 11.92 kB / 422.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.1138, allocations: 4 kB / 422.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.303e-05/0.1139, allocations: 0 / 422.6 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.1139, allocations: 4 kB / 422.6 MB, free: 8.16 MB / 350.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.159e-05/0.114, allocations: 117.8 kB / 422.7 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001103/0.1141, allocations: 73.67 kB / 422.8 MB, free: 7.957 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.133e-05/0.1141, allocations: 3.969 kB / 422.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1141, allocations: 0 / 422.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1141, allocations: 4.438 kB / 422.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.355e-06/0.1141, allocations: 0 / 422.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.1142, allocations: 161.7 kB / 423 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.1142, allocations: 4 kB / 423 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.201e-06/0.1142, allocations: 0 / 423 MB, free: 7.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1142, allocations: 3.938 kB / 423 MB, free: 7.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.1142, allocations: 3.984 kB / 423 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1142, allocations: 8 kB / 423 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.1142, allocations: 4.031 kB / 423 MB, free: 7.715 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001387/0.1144, allocations: 85.11 kB / 423.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/0.1144, allocations: 81.06 kB / 423.2 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.327e-05/0.1144, allocations: 11.94 kB / 423.2 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.673e-05/0.1145, allocations: 7.984 kB / 423.2 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.224e-06/0.1145, allocations: 3.938 kB / 423.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.412e-06/0.1145, allocations: 0 / 423.2 MB, free: 7.492 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.756e-05/0.1146, allocations: 87.28 kB / 423.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1146, allocations: 0 / 423.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001932/0.1147, allocations: 8 kB / 423.3 MB, free: 7.398 MB / 350.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.000111/0.1149, allocations: 107.2 kB / 423.4 MB, free: 7.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001194/0.115, allocations: 31.94 kB / 423.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.115, allocations: 0 / 423.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.11e-07/0.115, allocations: 0 / 423.4 MB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007118/0.1157, allocations: 0.7222 MB / 424.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003119/0.116, allocations: 161.7 kB / 424.3 MB, free: 6.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/0.1163, allocations: 0.6961 MB / 425 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.2e-05/0.1164, allocations: 11.44 kB / 425 MB, free: 5.586 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1164, allocations: 0 / 425 MB, free: 5.586 MB / 350.1 MB Notification: Performance of Templates: time 0.002259/0.1186, allocations: 0.7735 MB / 425.8 MB, free: 4.816 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 6.3138270729687065]